Category: Integration
Node id: email
Sends emails via SMTP with support for HTML/plain text, CC, and BCC recipients
What it does
- Sends emails via SMTP with optional authentication
- Supports plain text and HTML content types
- Multiple recipients via To, CC, and BCC fields
- RFC 5322 compliant message formatting with MIME headers
- Input-driven overrides for from, to, subject, and body fields
Use cases
- Send pipeline execution reports via email
- Notify clinicians of critical lab results or alerts
- Distribute scheduled data export summaries to stakeholders
- Send patient appointment reminders from automated workflows
Runtime
- Performance tier:
variable
Input ports
| Name | Type | Required | Description |
|---|---|---|---|
from | text | No | Sender email address (overrides config) |
to | any | No | Recipient address or array of addresses |
cc | any | No | CC address or array of addresses |
bcc | any | No | BCC address or array of addresses |
subject | text | No | Email subject line (overrides config) |
body | text | No | Email body content (overrides config) |
Output ports
| Name | Type | Required | Description |
|---|---|---|---|
result | json | No | Email delivery summary with from, to, cc, bcc, subject, and recipient_count |
success | boolean | No | Whether the email was sent successfully |
Settings
Basic
| Setting | Name | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|---|
| From Address | from | string | Yes | Sender email address | ||
| To Address | to | string | No | Default recipient email address | ||
| Subject | subject | string | No | Default email subject | ||
| Body | body | text | No | Default email body content | ||
| Content Type | content_type | enum | No | text/plain | text/plain, text/html | Email content type |
Auth
| Setting | Name | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|---|
| SMTP Host | smtp_host | string | Yes | SMTP server hostname | ||
| SMTP Port | smtp_port | number | No | 587 | min 1; max 65535 | SMTP server port |
| Username | username | string | No | SMTP authentication username | ||
| Password | password | secret | No | SMTP authentication password |
Errors
| Code | Description |
|---|---|
MISSING_SMTP_HOST | SMTP host is required but was not configured |
MISSING_FROM_ADDRESS | Sender (from) address is required but was empty |
MISSING_RECIPIENTS | At least one recipient (to) address is required |
MISSING_BODY | Email body content is required but was empty |
SMTP_SEND_FAILED | SMTP SendMail call failed (connection, auth, or delivery error) |
Runtime notes
- Input values for from, to, subject, and body override config defaults — useful for dynamic content from upstream nodes
- 'to' accepts a single string or an array of strings; same for cc and bcc
- BCC recipients are included in SMTP delivery but not in message headers
- Email is sent synchronously — node blocks until SMTP delivery completes or fails
See Build any workflow for how to put nodes together and Ports, types and data flow for how port types connect.
Etwas unklar? Senden Sie Feedback zur Dokumentation per E-Mail..