Skip to main content

Envoyer Email

Sends an email via the configured SMTP service. Supports text, HTML, and template formats. Attachments and carbon copy are available.

Parameters

ParameterTypeRequiredVariableDescription
todynamic valueYesYesRecipient email address(es). Multiple addresses separated by commas.
subjectdynamic valueYesYesEmail subject line.
bodydynamic valueNoYesEmail body content. Supports plain text, HTML, or templates.
bodyTypechoice (text, html, template)NoNoBody format: plain text, HTML, or pre-defined template. (Default: "text")
ccdynamic valueNoYesCC recipient address(es).
bccdynamic valueNoYesBCC (blind carbon copy) recipient address(es).
replyTotextNoNoReply-To address different from the sender.
attachmentsarrayNoNoFiles to attach to the email.
outputVariabletextNoNoOutput variable name containing the send status.

Parameters marked Variable = Yes accept the {{blockName.field}} syntax.

Output

Output variable : emailResult

{
"success": false,
"messageId": "...",
"accepted": []
}

Example

Send a notification email.

Input :

{"to": "user@example.com", "subject": "Rapport pret", "body": "Votre rapport est disponible."}

Output :

{"success": true, "messageId": "abc123", "accepted": ["user@example.com"]}

Common errors

ProblemSolution
Email not sentCheck the SMTP configuration in the workspace settings.
Tip

This block is only available in execution mode (Run button or scheduling). In test mode (Test button), it always returns an error because the SMTP service is not connected.