Sim

SMTP

Send emails via any SMTP mail server

SMTP (Simple Mail Transfer Protocol) is the foundational standard for email transmission across the Internet. By connecting to any SMTP-compatible server—such as Gmail, Outlook, or your organization's own mail infrastructure—you can send emails programmatically and automate your outbound communications.

SMTP integration allows you to fully customize email sending through direct server connectivity, supporting both basic and advanced email use cases. With SMTP, you can control every aspect of message delivery, recipient management, and content formatting, making it suitable for transactional notifications, bulk mailings, and any automated workflow requiring robust outbound email delivery.

Key features available via SMTP integration include:

  • Universal Email Delivery: Send emails using any SMTP server by configuring standard server connection parameters.
  • Customizable Sender and Recipients: Specify sender address, display name, primary recipients, as well as CC and BCC fields.
  • Rich Content Support: Send plain text or richly formatted HTML emails according to your requirements.
  • Attachments: Include multiple files as attachments in outgoing emails.
  • Flexible Security: Connect using TLS, SSL, or standard (unencrypted) protocols as supported by your SMTP provider.
  • Advanced Headers: Set reply-to headers and other advanced email options to cater for complex mailflows and user interactions.

By integrating SMTP with Sim, agents and workflows can programmatically send emails as part of any automated process—ranging from sending notifications and confirmations, to automating external communications, reporting, and document delivery. This offers a highly flexible, provider-agnostic approach to managing email directly within your AI-driven processes.

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.

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
errorstringError message if sending failed

Notes

  • Category: tools
  • Type: smtp
On this page

On this page

Start building today
Trusted by over 60,000 builders.
Build Agentic workflows visually on a drag-and-drop canvas or with natural language.
Get started