Skip to main content
The SMTP Email connector lets your workflows send emails through any SMTP-compatible mail server. Works with Gmail, Microsoft 365, Amazon SES, SendGrid, Mailgun, and any self-hosted SMTP server.
If you just need to send a quick notification email without setting up an external service, use the built-in Send Email node instead; it sends from Spojit with no connection required.

Connection setup

1

Gather your SMTP credentials

You’ll need the following from your email provider:
  • SMTP Host (e.g., smtp.gmail.com)
  • Port (typically 587 for STARTTLS or 465 for SSL)
  • Username (usually your email address)
  • Password (your email password or app-specific password)
2

Add the connection in Spojit

Go to Connections in Spojit, click Add Connection, select SMTP Email, and enter:
  • SMTP Host: Your mail server hostname
  • Port: SMTP port number
  • Username: Your SMTP username
  • Password: Your SMTP password
  • Use SSL/TLS (optional): Enable for port 465. Auto-detected if left off.
  • Default From Address (optional): A default sender address (e.g., Team <hello@yourdomain.com>) used when from is not specified in the tool parameters
Gmail: You must use an App Password instead of your regular password. Enable 2-Step Verification first, then generate an App Password.
Microsoft 365: SMTP AUTH must be enabled for the mailbox. An admin can enable it in the Microsoft 365 admin center under Active users → Mail → Manage email apps.

Common SMTP settings

Tools

string
Sender address (e.g., Team <hello@yourdomain.com>). Falls back to the connection’s default from address.
string | string[]
required
Recipient email address(es).
string
required
Email subject line.
string
HTML email body.
string
Plain text email body.
string | string[]
CC recipient(s).
string | string[]
BCC recipient(s).
string
Reply-to address.
object[]
File attachments. Each item is an object with a filename and base64-encoded content. The content type is inferred from the filename extension.In a workflow, map content to an upstream output that already produces base64-encoded bytes (e.g. a file downloaded over HTTP/FTP, or a document produced by another step).
Example request:
Example response:
Verifies that the SMTP server is reachable and the credentials are valid without sending an email. No parameters required.Example response: