mailpit

Email and SMTP testing.

Visit website ↗

Profile updated

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.

Is mailpit a fit?

Based on Console’s review published on 2023-07-27. Summary updated .

Who it’s for

Developers doing local development should consider mailpit

Why consider it

Mailpit allows developers to test emails from their code

Keep in mind

Mailpit is designed for integration testing rather than unit testing or mocking

Console is a free weekly newsletter with short reviews of developer tools, covering strengths and tradeoffs. This review reflects Console’s assessment at publication on 2023-07-27. Features and limitations may have changed since the review date. 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.