Skip to content

SMTP Integration

Emitlo supports SMTP relay on port 587 with STARTTLS. Use this if your application or framework already has SMTP support and you don’t want to integrate the REST API.


SMTP settings

SettingValue
Hostapi.emitlo.com
Port587
SecuritySTARTTLS
AuthenticationAUTH PLAIN
UsernameYour credential username
PasswordYour credential secret key

Configuration examples

import nodemailer from 'nodemailer';
const transporter = nodemailer.createTransport({
host: 'api.emitlo.com',
port: 587,
secure: false, // STARTTLS
auth: {
user: 'YOUR_CREDENTIAL_USERNAME',
pass: 'YOUR_SECRET_KEY',
},
});
await transporter.sendMail({
from: '"Your App" <hello@yourdomain.com>',
to: 'user@example.com',
subject: 'Hello from Emitlo SMTP',
html: '<p>This email was sent via SMTP.</p>',
});

SMTP vs REST API

SMTPREST API
SetupDrop-in for existing SMTP configRequires API integration
Batch sendingOne message at a timeUp to 500 per request
AttachmentsNative MIME supportBase64-encoded
TrackingSame delivery trackingSame delivery tracking
Rate limitsShared with APIShared with SMTP

Use SMTP when you already have SMTP configured and want a quick switch. Use the REST API for new integrations, batch sending, or when you need more control.


Troubleshooting

Authentication failed (535)

  • Double-check your username and password
  • Ensure the credential has send permission
  • Verify the credential is not suspended or revoked

Sender domain rejected

  • The From: address domain must match the credential’s sending domain
  • Ensure the domain is verified

Connection refused

  • Confirm you’re connecting to port 587 with STARTTLS (not port 465 with SSL)