Send a mail
send_messageSends an email immediately from a connected mailbox, including replies, forwards, attachments, and recipient handling; use create_draft when a person must review before delivery.
Instructions
Send a mail at once. It cannot be taken back. With original_id it answers or forwards that message, and a reply without recipients goes where the original asks answers to go, its Reply-To, else its sender. The same call repeated within 24 hours sends nothing and answers the first result. It answers the id of the copy in the sent folder where the account keeps one. refused lists recipients the server did not take. When a person should look at the mail first, use create_draft instead.
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": {
"account_id": "<account_id>"
},
"name": "send_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | Addresses, plain or as Name <address> | |
| to | No | Addresses, plain or as Name <address> | |
| bcc | No | Addresses, plain or as Name <address> | |
| html | No | The body as HTML, for formatting. Inline styles only (style=...), since many mail programs drop <style> blocks. Without text, the text part is made from it | |
| text | No | The body as plain text | |
| quote | No | With original_id: false adds nothing of the original, no quote of a reply and no forwarded message. The link to it stays | |
| action | No | With original_id: reply to its sender, reply_all to everyone it went to, or forward it | reply |
| subject | No | The subject. Left empty with original_id: the original's, after Re: or Fwd: | |
| reply_to | No | Where answers should go instead of this account's address | |
| account_id | Yes | The account, by the id list_accounts names | |
| forward_as | No | A forward: inline quotes the original below the text with its attachments, attachment attaches it unchanged as a file | inline |
| attach_from | No | Attachments of other mail of this account, attached as they are, before attachments. Needs the right to read that mail | |
| attachments | No | Files to attach, 25 MiB together at most | |
| original_id | No | A message to answer or forward. Recipients and quote follow |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sent | Yes | ||
| refused | No | ||
| sent_copy_id | No | ||
| original_marked | No | ||
| message_id_header | Yes |