Envoyer Email
Sends an email via the configured SMTP service. Supports text, HTML, and template formats. Attachments and carbon copy are available.
Parameters
| Parameter | Type | Required | Variable | Description |
|---|---|---|---|---|
to | dynamic value | Yes | Yes | Recipient email address(es). Multiple addresses separated by commas. |
subject | dynamic value | Yes | Yes | Email subject line. |
body | dynamic value | No | Yes | Email body content. Supports plain text, HTML, or templates. |
bodyType | choice (text, html, template) | No | No | Body format: plain text, HTML, or pre-defined template. (Default: "text") |
cc | dynamic value | No | Yes | CC recipient address(es). |
bcc | dynamic value | No | Yes | BCC (blind carbon copy) recipient address(es). |
replyTo | text | No | No | Reply-To address different from the sender. |
attachments | array | No | No | Files to attach to the email. |
outputVariable | text | No | No | Output 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
| Problem | Solution |
|---|---|
| Email not sent | Check 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.