Email

Mailpit - A small SMTP testing server with an API for test suites

emailself-hostedsmtptestingapi

Most email bugs show up only after a message has left your app. Mailpit catches those messages locally before they reach anyone, stores them in memory or on disk, and serves a searchable web inbox for inspection. It also exposes an API, so end-to-end tests can assert that a confirmation email was sent, check its subject, or clear the inbox between runs. The single binary starts quickly and uses very little memory, which makes it easy to keep running beside a development stack. It handles SMTP and optional IMAP, but the point is testing, not delivery.

Links

Alternatives

  • MailCatcher NG: A close relative with a familiar web inbox, but without the same API focus.
  • MailHog: A well-known local catcher that is simple to run and easy to script against.
  • MailDev: Another small web inbox for development mail, with a slightly different feature set.
  • smtp4dev: A good pick on Windows desktops and a solid container option elsewhere.