SMTP

Send emails via any SMTP mail server

Configuration

SMTP Host*
smtp.gmail.com, smtp.example.com
SMTP Port*
587
SMTP Username*
your-email@example.com
SMTP Password*
••••••••
Security Mode*
Select...
From*
sender@example.com
To*
recipient@example.com
Subject*
Email subject
Body*
Email content
Content Type
Select...
Attachments
Upload files to attach
Attachments
Reference files from previous blocks
From Name
Display name for sender
CC
cc1@example.com, cc2@example.com
BCC
bcc1@example.com, bcc2@example.com
Reply To
reply@example.com

Tools

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

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.

Notes

  • Category: tools
  • Type: smtp