Enqueue Template Email
enqueue_template_emailEnqueue a template-based email to be sent.
Emails to recipients who have already granted consent are sent right away. For every other recipient the email is queued, and a consent request is sent now if the recipient has none yet. New recipients are auto-registered and sent the consent request during this call. A queued email is sent once its recipient has granted consent and consent state is next refreshed: by 'send_pending_emails', or by a later call to another tool that sends email. Nothing is sent while the server is idle.
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": {
"TemplateName": "<TemplateName>",
"TemplateData": "<TemplateData>"
},
"name": "enqueue_template_email"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| TemplateData | Yes | Data to populate template variables. | |
| TemplateName | Yes | Name of the template to use. Must exist already. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Result | Yes | How many emails were queued, and of those how many were released for sending now, wait for recipient consent, or are not sent because the recipient denied consent. |