Send Mail
The Send Mail task sends an email to one or more recipients. The subject and body support template expressions — — to inject dynamic values from the workflow payload.
Emails can optionally attach files and assets from the current workflow payload.
Configuration
| Property | Type | Description |
|---|---|---|
dry_run | boolean | Run without executing task effects — the email is not sent |
mail_to | string | Recipient email address — supports multiple addresses separated by commas |
subject | string | Email subject line — supports template expressions |
body_html | string | HTML email body — supports template expressions |
template | string | Reference to a Mail Template — overrides body_html when set |
attach_files | boolean | Attach workflow files to the email |
attach_assets | boolean | Attach workflow assets to the email |
include | array | File name patterns to include in attachments |
exclude | array | File name patterns to exclude from attachments |
Template expressions
Both subject and body_html support syntax. For example:
Subject: Form submitted at {{ datetime.timestamp }}
Body: Hello, a new submission was received from {{ submission.name }}.See also: Tasks overview
