Action ReferencesSendMailAction
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

FieldTypeDescription
providerStringMail provider id (smtp, sendgrid, etc.).
subjectMScriptSubject expression.
bodyMScriptEmail body (HTML or text).
toMScriptRecipient address(es).
fromMScriptSender address (optional).
ccMScriptCC 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