Search for a command to run...
Fake SMTP server that captures outgoing emails during development so you can inspect them without delivering to real addresses. Your application sends mail to MailHog instead of a live server, and messages appear in a web UI or via a JSON API for inspection, debugging, or release to a real server later.
Inspired by MailCatcher, built in Go as a single binary that runs without installation on multiple platforms. Widely used in local development setups, CI pipelines, and Docker Compose stacks. Differentiates with zero-config defaults, an ESMTP server that implements RFC5321 with SMTP AUTH and PIPELINING, and optional persistence via MongoDB or file storage when in-memory is not enough.
Key capabilities:
Teams use MailHog to test transactional emails, password resets, and notification flows without risking deliveries to production addresses. Fits into Docker Compose alongside app containers, integrates with Laravel, Django, and other frameworks via SMTP configuration, and supports automation via its API for test assertions on email content.