Skip to main content

Send a message

POST 

/api/accounts/:accountId/send

Sends an HTML message over SMTP from one of the account's identities and returns the new messageId. from must be an enabled identity of the account; when left out, the default identity is used, and its display name goes into the From header.

After sending, a copy is saved to the Sent folder (flagged \Seen) and, when replyToFolder is set, also to that folder. When draftUid is set, that draft is removed from Drafts like a deleted message: moved to Trash, or expunged when the account has no Trash folder. These follow-up steps are only logged when they fail, so the call still succeeds. All recipients are added to the user's collected addresses.

At least one to recipient is required. An SMTP failure returns 424 and nothing is saved.

Request​

Responses​

Sent.