send_email_with_template
Render a stored email template with your variables and send transactional emails, with optional overrides for subject, recipients, and other fields.
Instructions
Render a stored CamelMailer template (Mustache-style {{ variables }}) against template_model and send it. Fields set directly (e.g. subject) override the rendered ones.
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>",
"template": "<template>"
},
"name": "send_email_with_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | CC recipients | |
| to | Yes | Recipient email addresses | |
| bcc | No | BCC recipients | |
| tag | No | Free-form tag for filtering and stats | |
| from | Yes | Sender address — must belong to a verified sending domain of the server | |
| stream | No | Message-stream permalink; defaults to the server's default stream | |
| subject | No | Override the rendered subject | |
| reply_to | No | Reply-To addresses | |
| template | Yes | Permalink of the stored template to render | |
| template_model | No | Variables for the template placeholders | |
| idempotency_key | No | See send_email; makes the send replayable. |