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 |
|---|---|---|---|
followUp | unknown | no | Reviewed fixed plain-text follow-up and whole-day delay. Omit or null for no plan on this new email; tenant policy and current sender authority are enforced before sending. |
idempotencyKey | string | no | Stable operation key. Reuse this exact key and unchanged message/plan after a lost response; changing it can send the initial email again. |
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 | Optional sender address owned by this inbox. Omit to use its default address; the name always comes from configuration. |
Returns
ReturnType<TinboxTools["sendEmail"]>
Example
ts
await tinbox.tools.sendEmail({
"inboxId": "ibx_…",
"to": [
"ada@example.com"
],
"subject": "<subject>"
});