Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.spojit.com/llms.txt

Use this file to discover all available pages before exploring further.

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

ProviderHostPortNotes
Gmailsmtp.gmail.com587Requires App Password
Outlook / Microsoft 365smtp.office365.com587Enable SMTP AUTH
Amazon SESemail-smtp.us-east-1.amazonaws.com587Use SMTP credentials (not AWS keys)
SendGridsmtp.sendgrid.net587Username is apikey, password is your API key
Mailgunsmtp.mailgun.org587Use domain-specific SMTP credentials

Tools

from
string
Sender address (e.g., Team <hello@yourdomain.com>). Falls back to the connection’s default from address.
to
string | string[]
required
Recipient email address(es).
subject
string
required
Email subject line.
html
string
HTML email body.
text
string
Plain text email body.
cc
string | string[]
CC recipient(s).
bcc
string | string[]
BCC recipient(s).
replyTo
string
Reply-to address.
Example request:
{
  "from": "Orders <orders@mystore.com>",
  "to": ["customer@example.com"],
  "subject": "Your order has shipped!",
  "html": "<h1>Order Shipped</h1><p>Your order #1234 has been shipped and is on its way.</p><p>Tracking: <a href='https://track.example.com/ABC123'>ABC123</a></p>",
  "cc": ["warehouse@mystore.com"],
  "replyTo": "support@mystore.com"
}
Example response:
{
  "success": true,
  "data": {
    "messageId": "<d2e8c1f3-4a5b-6c7d-8e9f-0a1b2c3d4e5f@mystore.com>",
    "accepted": ["customer@example.com", "warehouse@mystore.com"],
    "rejected": [],
    "response": "250 2.0.0 OK"
  }
}
Verifies that the SMTP server is reachable and the credentials are valid without sending an email. No parameters required.Example response:
{
  "success": true,
  "data": {
    "message": "SMTP connection verified successfully"
  }
}