Skip to content

SMTP

Send from any app that speaks SMTP

Point your mail library, framework or plugin at smtp.send.io on port 587. Each message gets the same events and webhooks as an API send.

smtp.send.io:587Example session · STARTTLS
S: 220 smtp.send.io ESMTP ready
C: EHLO app.example.com
S: 250-STARTTLS
S: 250 AUTH PLAIN LOGIN
C: STARTTLS
S: 220 Ready to start TLS
C: AUTH PLAIN ••••••••
S: 235 Signed in as hello@yourdomain.com
C: MAIL FROM:<hello@yourdomain.com>
S: 250 OK
C: RCPT TO:<you@example.com>
S: 250 OK
C: DATA
S: 354 End data with <CRLF>.<CRLF>
C: (message body)
S: 250 Stored

Connect with four values

Host, port, a mailbox login and STARTTLS. That is the whole setup.

Moving an app that already sends over SMTP? Change the host, port, username and password. Keep the rest.

Host
smtp.send.io
Port
587. Ports 465, 25 and 2587 are not open.
Encryption
STARTTLS, required before you sign in. TLS 1.2 or newer. Some apps call it TLS.
Authentication
PLAIN or LOGIN
Username
The full mailbox address, such as hello@yourdomain.com, on a verified domain
Password
The mailbox password, or a full-access API key of the team that owns the mailbox

A mailbox is your login

SMTP signs in as a mailbox, so the username is always an address on a domain you have verified.

Prefer the mailbox password in apps: it can only send from that mailbox's domain.

  1. 01

    Verify your domain

    Add it in Domains and publish the DNS records Send.io shows you.

  2. 02

    Create a mailbox

    Such as hello@yourdomain.com, in Mailboxes or over the API. The password is shown once.

    POST /mailboxes
  3. 03

    Use it in your app

    The address is the username. Lost the password? Reset it, and the old one stops working at once.

    POST /mailboxes/{id}/password

Keep the library you have

Each example reads the password from an environment variable. Swap in your own mailbox address.

SMTP carries a finished message. Scheduling, templates, tags and idempotency keys are API only.

import nodemailer from "nodemailer";

const transporter = nodemailer.createTransport({
  host: "smtp.send.io",
  port: 587,
  secure: false,      // STARTTLS on 587
  requireTLS: true,
  auth: { user: "hello@yourdomain.com", pass: process.env.SENDIO_SMTP_PASSWORD },
});

await transporter.sendMail({
  from: "Acme <hello@yourdomain.com>",
  to: "you@example.com",
  subject: "Hello from send.io",
  text: "It works.",
});

Test the login from a server first with swaks --server smtp.send.io:587 --tls.

Keep your mail library. Change four settings.

SMTP sends show up in Emails with the same delivery events and webhooks as the API.

A developer typing on a laptop in front of an old monitor full of code