Get started

Migrate from Nodemailer

Move SMTP configuration and message fields to sently incrementally.

Keep your message object, replace transporter construction, and await the sently factory.

import { createSMTPMailer } from "sently/smtp";

const mailer = await createSMTPMailer({
  host: "smtp.example.com",
  auth: { user: "user@example.com", pass: process.env.SMTP_PASSWORD! },
});

The one rule

Use createSMTPMailer for relay configuration; use createMailer only with an explicit transport.