Send an email
send_emailSend a new email or reply to an existing thread, with attachments, CC/BCC, and HTML. Recipients must be allowlisted and content should be confirmed first.
Instructions
Send an email. This is irreversible: confirm the content with the user first.
Sending only works when EMAIL_ALLOW_SEND=true, and every recipient must pass the configured allowlist. Pass reply_to_uid to answer an existing message: the reply is threaded correctly and the recipient and subject are filled in from the original.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | Cc recipients. | |
| to | No | Recipients. Plain addresses or 'Name <a@b.com>' both work. | |
| bcc | No | Bcc recipients. | |
| body | Yes | Plain-text body. | |
| html | No | Optional HTML alternative. Always send body as well. | |
| subject | Yes | Subject line. | |
| attachments | No | Filenames inside the server's attachment directory. | |
| reply_to_uid | No | UID of a message to reply to; threads the reply and fills in To. | |
| reply_to_folder | No | Folder holding the message being replied to. | INBOX |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sender | Yes | ||
| subject | No | ||
| accepted | Yes | Recipients the server accepted. | |
| rejected | No | Recipients the server refused. | |
| message_id | Yes | Message-ID assigned to the outgoing mail. | |
| saved_to_folder | No | Folder a copy was appended to, when the account keeps sent mail server-side. | |
| attachment_count | No |