Send email
plunk_send_transactionalSend a one-off transactional email to specific recipients using subject and body or a template, ideal for receipts, replies, and notifications.
Instructions
Purpose: Send a one-off email to specific recipients, with an inline subject and body or a template id.
Not for: Mail to a list or segment — that is a campaign (plunk_create_campaign then plunk_send_campaign), which respects unsubscribes properly.
Returns: Confirmation of the send.
Use when: Messaging a named person or small set of people: a receipt, a reply, a notification.
Note: Supply subject and body, or template. from is optional and falls back to the project's default sender. Sending to more than one recipient asks for confirmation first. Pass idempotencyKey to make a retry safe after a timeout.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Recipient email, object, or array | |
| body | No | HTML or text body. Required unless template is provided. | |
| data | No | Variables for template/body interpolation. | |
| from | No | Sender. Optional — falls back to the project's default sender when omitted. | |
| name | No | Sender display name (legacy field). | |
| reply | No | ||
| headers | No | ||
| subject | No | Subject line. Required unless template is provided. | |
| template | No | Template UUID to use instead of subject/body. | |
| subscribed | No | ||
| attachments | No | ||
| idempotencyKey | No | Optional. A unique string of your choosing that makes a retry safe: if this key was already used by the project, Plunk refuses the request with 409 instead of sending twice. Keys are remembered for 24 hours. Plunk v0.13+. |