send_email
Send transactional emails by providing inline HTML or plain text content, or render a saved template with merge variables. Supports CC, BCC, custom headers, and scheduling.
Instructions
Send a transactional email. Provide html and/or text, or render a saved template with templateId + data. Addresses accept "Name " or bare "email".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | Optional CC address(es). | |
| to | Yes | Recipient address(es) — a string or array of strings. | |
| bcc | No | Optional BCC address(es). | |
| data | No | Merge variables for the template. | |
| from | Yes | Sender, e.g. "Acme <hello@acme.com>". Must be on a verified domain. | |
| html | No | HTML body. | |
| tags | No | Arbitrary key/value tags for analytics. | |
| text | No | Plain-text body. | |
| sender | No | Product/sender externalId sent as X-Drin-Sender. Required only for account-wide API keys; overrides the server's default sender. | |
| headers | No | Custom MIME headers. | |
| replyTo | No | Optional Reply-To address(es). | |
| subject | No | Subject line (optional when using templateId). | |
| templateId | No | Saved template id or slug to render instead of inline html/text. | |
| scheduledAt | No | ISO-8601 time to send later. | |
| idempotencyKey | No | Dedup key honored 24h per sender. |