The Email Service action sends an email when a trigger event occurs. Email content can be provided directly in the action configuration or generated from a template.
The payload for the action is:
| Property | Required | Description |
|---|---|---|
| attachments | Optional | Files attached to the email. If multiple content values are provided, all are attached. For example, "uri": "hxpr:/1234567890". |
| bcc | Optional | One or more blind carbon copy (BCC) recipients. |
| cc | Optional | One or more carbon copy (CC) recipients. |
| charset | Optional | Character encoding used for the email content, such as UTF-8. |
| from | Required | The email address of the sender. If no sender is provided, the default configured address is used. |
| html | Optional | HTML content used as the email body. |
| metadata | Optional | Metadata values used by a template to resolve variable placeholders. Metadata is provided as a JSON object containing key-value pairs. |
| subject | Optional | Subject line of the email. |
| template | Optional | Template file used to generate the email content. If multiple templates are provided, only the first template is used. Templates can be uploaded from a GEN application or referenced from the repository. |
| text | Optional | Plain-text version of the email body. When both html and text are provided, email clients that do not support HTML can use the text version instead. |
| to | Required | One or more email recipients. Multiple recipients are supported. |