Zum Hauptinhalt springen

Email

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​

NameTypeRequiredDescription
fromtextNoSender email address (overrides config)
toanyNoRecipient address or array of addresses
ccanyNoCC address or array of addresses
bccanyNoBCC address or array of addresses
subjecttextNoEmail subject line (overrides config)
bodytextNoEmail body content (overrides config)

Output ports​

NameTypeRequiredDescription
resultjsonNoEmail delivery summary with from, to, cc, bcc, subject, and recipient_count
successbooleanNoWhether the email was sent successfully

Settings​

Basic​

SettingNameTypeRequiredDefaultAllowed valuesDescription
From AddressfromstringYesSender email address
To AddresstostringNoDefault recipient email address
SubjectsubjectstringNoDefault email subject
BodybodytextNoDefault email body content
Content Typecontent_typeenumNotext/plaintext/plain, text/htmlEmail content type

Auth​

SettingNameTypeRequiredDefaultAllowed valuesDescription
SMTP Hostsmtp_hoststringYesSMTP server hostname
SMTP Portsmtp_portnumberNo587min 1; max 65535SMTP server port
UsernameusernamestringNoSMTP authentication username
PasswordpasswordsecretNoSMTP authentication password

Errors​

CodeDescription
MISSING_SMTP_HOSTSMTP host is required but was not configured
MISSING_FROM_ADDRESSSender (from) address is required but was empty
MISSING_RECIPIENTSAt least one recipient (to) address is required
MISSING_BODYEmail body content is required but was empty
SMTP_SEND_FAILEDSMTP 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..