Skip to main content

Send an email node

The Send an email node allows sending emails from your workflow: notifications, confirmations, reports and user alerts.

Parameters​

ParameterTypeRequiredDefaultDescription
AppApp❌—Application associated with the node.
ToString✅—Main recipient of the email.
SubjectString✅—Subject of the sent email.
BodyString✅—Email content (text or HTML).
Send the content as HTMLBoolean❌—Specifies whether the email content is written in HTML.
Stop the workflow if sending failsBoolean❌—Stops the workflow if the email sending fails.
Tracking linksBoolean❌—Enables or disables the tracking links.

Recipients​

To (required)​

Main recipient:

  • Format: user@example.com
  • Supports Handlebars variables: {{user.email}}
  • Several recipients: user1@example.com,user2@example.com

Subject​

Email subject:

  • Free text
  • Supports Handlebars variables
  • Example: Order {{order.id}} confirmed

Body​

Email body:

  • HTML or text format
  • Supports Handlebars variables
  • Can include HTML for formatting

HTML example:

<h1>Hello {{user.name}}</h1>
<p>Your order {{order.id}} has been confirmed.</p>
<ul>
{{#each order.items}}
<li>{{name}} - {{quantity}} x {{price}}</li>
{{/each}}
</ul>

Input​

The node receives the workflow context data (trigger or previous nodes) and injects it into its fields via Handlebars variables — {{data…}}, {{context…}} and the metadata system object:

Subject : Order {{context.order.id}} confirmed
Body : Trace {{metadata.traceId}}

The metadata object is available in all workflows (traceId, triggerExecutionId, environment) — see Variables.

Output​

The Send an email node generates no context variable: it sends the message and the workflow continues.

Example​

Email error alert:

Connected to an On Error node, the alert email references the execution at the origin of the failure:

  • To: {{context.ops.email}}
  • Subject: Error alert - Trace {{metadata.traceId}}
  • Body: An error occurred. See the trace: {{metadata.traceId}}

See also​