Action References
SendMailAction
SendMailAction
Purpose
Send an email via a configured provider using dynamic subject/body/to values.
When to use it
- Notify users after CRUD or payment steps.
- Send templated content prepared by
RenderDataAction.
Key fields
| Field | Type | Description |
|---|---|---|
provider | String | Mail provider id (smtp, sendgrid, etc.). |
subject | MScript | Subject expression. |
body | MScript | Email body (HTML or text). |
to | MScript | Recipient address(es). |
from | MScript | Sender address (optional). |
cc | MScript | CC recipients (optional). |
Example
{
"id": "a350-send-mail",
"name": "sendWelcomeMail",
"contextPropertyName": "mailResult",
"provider": "sendgrid",
"subject": "`Welcome, ${this.user.fullname}`",
"body": "this.renderedWelcomeEmail",
"to": "this.user.email",
"from": "`noreply@acme.com`"
}
Was this page helpful?
Built with Documentation.AI
Last updated Jan 3, 2026