Modern MailHog replacement — fast Go SMTP catcher.
Mailpit is for dev/QA. MailKite is for production send + receive.
A minimal, copy-paste starter. Swap in your own domain and API key.
import { MailKiteClient } from "@mailkite/client";
// One API, your own DKIM-signed domain — no mail server to run
const mailkite = new MailKiteClient({ token: process.env.MK_API_KEY! });
await mailkite.send({
from: "you@yourdomain.com", // any address on a verified domain
to: "user@example.com",
subject: "Hello from Mailpit",
html: "<p>Sent in milliseconds via MailKite.</p>",
}); Mailpit is a fast, modern SMTP catcher and testing tool (Go, MIT) that has largely replaced the stale MailHog (last released 2020). It captures mail, serves a web UI, supports IMAP, and runs as a single binary.
Open source (self-host)
MailHog's last release was August 2020. Mailpit is the actively-maintained successor many stacks have switched to.
Point a domain, drop in a webhook URL, and send your first email in minutes. Unlimited domains, no credit card.