Skip to content
Tinbox

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

NameTypeRequiredDescription
followUpunknownnoReviewed 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.
idempotencyKeystringnoStable operation key. Reuse this exact key and unchanged message/plan after a lost response; changing it can send the initial email again.
inboxIdstringyesThe inbox to send from (required).
tostring[]yesRecipient address(es).
ccstring[]no—
bccstring[]no—
subjectstringyesEmail subject.
bodyTextstringnoPlain-text body (provide bodyText and/or bodyHtml).
bodyHtmlstringnoHTML body.
fromstringnoOptional 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>"
});