send_email
Send an email from the account's bound domain. Requires a credential bound to a domain — a listen-only credential cannot send. A credential bound to several domains picks the one the from address is on; a from outside that set is refused. A domain with no outbound provider configured is refused with sending_not_configured (enable sending in the dashboard first). Pass replyToMessageId (a messageId from list_events or get_email) to send a reply in the same thread. Returns the numeric message id and the SMTP Message-ID, which get_send_status accepts. Several recipients each get their own message, and the answer reports what happened to EACH address: status is sent, partial (some refused) or failed (all refused), and recipients carries every address with its own verdict and reason.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"from": "<from>",
"to": "<to>",
"subject": "<subject>"
},
"name": "send_email"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | One recipient address, or a list of them. | |
| from | Yes | The sender address. Must be on one of the credential's bound domains. | |
| html | No | The HTML body. One of `text` or `html` is required. | |
| text | No | The plain-text body. One of `text` or `html` is required. | |
| replyTo | No | Optional: a Reply-To address, so replies to this new mail go somewhere else. A different fact from `replyToMessageId`, which answers an existing message in its thread. | |
| subject | Yes | The subject line. | |
| fromName | No | Optional: the sender's display name, e.g. `Billing`. Without it the mail worker's own default is used — the address's local part — never an empty display name. | |
| attachments | No | Optional: files to attach. The bytes travel with the request, so keep them small — this is a mail attachment, not a file store. | |
| perRecipient | No | Optional: send one message per recipient (the default). Set it to false to put every recipient on ONE shared envelope — one message, one relay call, cheaper on a provider that bills per message, but everybody sees each other and a single refused address refuses the whole send. With one message per recipient the answer reports what happened to EACH address, and a send where only some were refused answers `status: "partial"`. | |
| idempotencyKey | No | Optional: a caller-supplied key that makes a retry free. The same key under the same account and the same request returns the ORIGINAL result and does not send twice; the same key with a DIFFERENT payload is refused with `idempotency_key_conflict`. Use one key per logical mail (a UUID you can rebuild after a timeout), not one per attempt. Scoped to the account, so two accounts may use the same string. | |
| replyToMessageId | No | Optional: the id of the message being replied to — sends the reply in that thread. |