Send Pending Emails
send_pending_emailsSend queued custom and template emails whose recipients have granted consent since they were queued.
Refreshes sender domains and recipient consent state from GoodSender, then hands every queued email whose recipient has now consented to the mail queue, which sends it within seconds. Sending cannot be undone. Emails whose recipient has not consented stay queued; emails to recipients who declined are dropped. Returns the remaining queue per sender domain.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "send_pending_emails"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| EmailsPerDomain | Yes | Queued email per sender domain after the refresh. Key is the domain. | |
| ConsentStateAsOf | Yes | When recipient consent state was refreshed from GoodSender by this call. |