mailpit

Email and SMTP testing.

Visit website ↗

Console’s review

· Reviewed by David Mytton

What we like

Acts as a mail server (SMTP or API) for testing emails from your code. Static binary so can easily be run in CI/CD. API allows querying of received emails so you can check they were correctly “sent”. Can persist mail to a SQLite database. Has a web UI to inspect mail e.g. for local development.

Tradeoffs

Designed for integration testing rather than as a library for unit testing or mocking - which is probably what you want for email tests, but means you need to configure it as a service. Includes Docker images to support this.

Console is a free weekly newsletter with short reviews of developer tools, covering strengths and tradeoffs. This review reflects our assessment at publication. Read our selection criteria and learn about Console.

Discover your next favorite tool

Independent devtool reviews and the latest betas, in your inbox every Thursday. Free.