SMTP

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

On this page