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
587for STARTTLS or465for 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 whenfromis not specified in the tool parameters
Common SMTP settings
Tools
send-email: Send an email
send-email: Send an email
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).verify-connection: Test SMTP connection
verify-connection: Test SMTP connection
Verifies that the SMTP server is reachable and the credentials are valid without sending an email. No parameters required.Example response: