SMTP

The SMTP block sends email through a mail server using its hostname, port, security protocol, and credentials. Set the sender, recipients, subject, and plain-text or HTML body; add CC, BCC, reply-to, and attachments as needed. Inspect the returned send status and message ID, or the error if sending fails.

Usage Instructions

Send emails using any SMTP server (Gmail, Outlook, custom servers, etc.). Configure SMTP connection settings and send emails with full control over content, recipients, and attachments.

Actions

SMTP Send Mail

Send emails via SMTP server

Input

ParameterTypeRequiredDescription
smtpHoststringYesSMTP server hostname (e.g., smtp.gmail.com)
smtpPortnumberYesSMTP server port (587 for TLS, 465 for SSL)
smtpUsernamestringYesSMTP authentication username
smtpPasswordstringYesSMTP authentication password
smtpSecurestringYesSecurity protocol (TLS, SSL, or None)
fromstringYesSender email address
tostringYesRecipient email address
subjectstringYesEmail subject
bodystringYesEmail body content
contentTypestringNoContent type (text or html)
fromNamestringNoDisplay name for sender
ccstringNoCC recipients (comma-separated)
bccstringNoBCC recipients (comma-separated)
replyTostringNoReply-to email address
attachmentsfile[]NoFiles to attach to the email

Output

ParameterTypeDescription
successbooleanWhether the email was sent successfully
messageIdstringMessage ID from SMTP server
tostringRecipient email address
subjectstringEmail subject
errorstringError message if sending failed