Web and API based SMTP testing
open sourceMITself-hostablefree
MailHog is an email testing tool for developers, inspired by MailCatcher: point your app's SMTP settings at it, view the messages it catches in a web UI or fetch them with its JSON API, and optionally release them to a real SMTP server. It's a Go binary that runs without installation. It's unmaintained: the last release was v1.0.1 in August 2020, and its author said in 2023 that he no longer has time to maintain it and pointed people to Mailpit.
Problems it solves
- catch outgoing email from my app in local development
- view test emails in a browser instead of a real inbox
- fetch caught emails from a JSON API in our tests
- release a caught test email to a real mail server to check delivery
Features
- SMTP server that catches mail
- web UI
- JSON API
- release messages to a real SMTP server
- in-memory or MongoDB storage
Capabilities
| Has an API | plan not known |
|---|
Alternatives
The same job
These do what MailHog does.
- MailCatcher Catches mail and serves it through a dream
- Mailtrap We Send Emails
- Mailpit An email and SMTP testing tool with API for developers
