Send custom HTML emails
Use this service task to send HTML emails to Pantarey users automatically. Define the fields below – the task handles the rest.
Input parameters
Required structure:
{
"subject": "string",
"contentHTML": "string",
"toRecipients": [
"user1@pantarey.io",
"user2@pantarey.io"
],
"attachments": [
...
]
}
subject
: Email subject.contentHTML
: Complete HTML content of the message.toRecipients
: List of recipient addresses.attachments
: Optional; attachments as Base64-encoded strings.
Output
The task returns an object with an HTTP-like status:
{
"status": 200
}
status
:200
indicates success; 4xx/5xx codes signal errors.
Notes
toRecipients
must only contain verified Pantarey email addresses.- Build the HTML content dynamically with JSONata and process variables.
- On errors a non-200 status is returned so the process can react.
Tip
Test JSONata expressions in the JSONata Playground before using them in your model.