Send email
send_emailSend email through Proton Mail SMTP with HTML sanitization, attachments, CC/BCC, and sent-copy verification.
Instructions
Send an email using Proton Mail SMTP. HTML bodies are sanitized through a conservative allowlist by default (sanitizeHtml defaults to true) — scripts, event handlers, inline styles, and remote <img> beacons are stripped. Pass sanitizeHtml: false to send full-fidelity HTML in trusted-content workflows. Plain-text bodies pass through unchanged.
The response leads with [sent-copy:verified] (its copy was found in Sent), [sent-copy:pending] (not there yet after about 5 s; Proton can take 30 s or more) or, with verifySent: "wait", [sent-copy:unverified] (not there after about 30 s). All three mean SMTP accepted the message: do not resend. To confirm a pending copy later, call get_thread with the returned Message-ID.
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": {
"to": "<to>",
"subject": "<subject>"
},
"name": "send_email"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | CC recipient(s), separated by commas or semicolons, each name@example.com or "Name" <name@example.com> | |
| to | Yes | Recipient email address(es), separated by commas or semicolons, each name@example.com or "Name" <name@example.com> | |
| bcc | No | BCC recipient(s), separated by commas or semicolons, each name@example.com or "Name" <name@example.com> | |
| body | No | Email body content (plain text or HTML). Required unless `markdownBody` is provided. | |
| dryRun | No | If true, validate and resolve the full recipient set (To/CC/BCC) + subject + body WITHOUT sending — returns a preview so you can confirm exactly who would receive the mail. Mirrors the bulk/thread dry-run pattern. | |
| isHtml | No | Whether `body` contains HTML content | |
| replyTo | No | Reply-To address. Proton can rewrite it to the From address: it did for unrelated addresses and, in live tests, even for a +alias of the account's own address. The result checks the Sent copy and reports `[reply-to:rewritten]`; don't count on the requested address reaching the recipient. | |
| subject | Yes | Email subject line | |
| fromName | No | Display name for the From field. By default rejects values containing `@` to prevent display-name-as-address spoofing (e.g. `"Anthropic Security <security@anthropic.com>"` looks like a legitimate sender in most mail clients even though the envelope From is bound to the authenticated identity). Pass `allowAddressLikeFromName: true` for legitimate cases. | |
| verifySent | No | How long to look for the Sent copy after SMTP accepts the message. "quick" (default): about 5 s, then `[sent-copy:pending]` if it hasn't appeared yet. "wait": up to about 30 s, then `[sent-copy:unverified]`. Either way the message was sent; this only confirms it. | quick |
| attachments | No | File attachments: base64 `content`, or a `path` inside ALLOW_FILE_ATTACH_DIR. Proton limits a message's attachments to 25 MB. | |
| markdownBody | No | Markdown source — rendered to HTML before sending. Mutually exclusive with `body`/`isHtml`. A plain-text version is sent alongside the HTML, but Proton stores only the HTML, so the message reads back as HTML. | |
| sanitizeHtml | No | When the body is HTML (either via `isHtml: true` or `markdownBody`), strip scripts, event handlers, inline styles, disallowed tags, and remote `<img>` beacons through a conservative allowlist. **Defaults to true** for safer-by-default agent-driven sending. Pass `false` to preserve full-fidelity HTML for trusted-content workflows. No-op on plain-text bodies. | |
| allowAddressLikeFromName | No | Opt-in escape valve for `fromName` containing `@`. Default false — see fromName's note for why this is the safer-by-default posture for agent-driven sending. |