Skip to content

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

PropertyTypeDescription
dry_runbooleanRun without executing task effects — the email is not sent
mail_tostringRecipient email address — supports multiple addresses separated by commas
subjectstringEmail subject line — supports template expressions
body_htmlstringHTML email body — supports template expressions
templatestringReference to a Mail Template — overrides body_html when set
attach_filesbooleanAttach workflow files to the email
attach_assetsbooleanAttach workflow assets to the email
includearrayFile name patterns to include in attachments
excludearrayFile 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

S-Launch