SMTP relay for the apps you already run.

Point any app that sends transactional email over SMTP at snd.email and log in with an API key. Its messages get the same logs, limits and webhooks as the REST API.

Connection settings

Serversmtp.snd.email
Ports587 or 2525 with STARTTLS, 465 with TLS. Port 25 is not offered.
UsernameAny value, for example snd
PasswordAn API key with the emails:send scope
LoginPLAIN or LOGIN, only over TLS
Turning it onSMTP is off until an Owner turns it on: in the dashboard, open SMTP and press Activate.

Works with your stack

Any SMTP client works. This is Nodemailer; the SMTP guide also shows Python's smtplib, PHPMailer and Postfix.

Step by step: Node.js, Python and PHP.

import nodemailer from 'nodemailer';

const transporter = nodemailer.createTransport({
  host: 'smtp.snd.email',
  port: 587,
  secure: false,
  requireTLS: true,
  auth: { user: 'snd', pass: process.env.SND_API_KEY },
});

const info = await transporter.sendMail({
  from: 'Acme <hello@acme.example>',
  to: 'you@acme.example',
  subject: 'Welcome',
  text: 'Thanks for signing up.',
  html: '<p>Thanks for signing up.</p>',
  headers: { 'X-SND-Tag': 'welcome', 'X-SND-Metadata-user_id': '1042' },
});
console.log(info.response);

Same logs and webhooks as the API

A message sent over SMTP is the same as one sent with POST /v1/emails: the same domains, keys, suppression list, sending limits, tracking, webhooks and Activity Logs. The reply to every accepted message carries the id of its request, which the API looks up.

Streams, tags and metadata

These headers are removed before the message is sent; any other header that starts with X-SND- is refused.

What the relay refuses

Limits

Every reply code and what to do about it: Sending over SMTP.