SDK method
tools.sendEmail
Send an email. Convenience alias for send_email, forwarding to tinbox.api.messages.send.mutate.
Signature
ts
sendEmail(input: Parameters<TinboxTools["sendEmail"]>[0]): ReturnType<TinboxTools["sendEmail"]>Parameters
| Name | Type | Required | Description |
|---|---|---|---|
inboxId | string | yes | The inbox to send from (required). |
to | string[] | yes | Recipient address(es). |
cc | string[] | no | — |
bcc | string[] | no | — |
subject | string | yes | Email subject. |
bodyText | string | no | Plain-text body (provide bodyText and/or bodyHtml). |
bodyHtml | string | no | HTML body. |
from | string | no | Explicit From — must be an address this inbox owns. |
Returns
ReturnType<TinboxTools["sendEmail"]>
Example
ts
await tinbox.tools.sendEmail({
"inboxId": "ibx_…",
"to": [
"ada@example.com"
],
"subject": "<subject>"
});