MailHog SMTP Testing Server with Web UI and API
Uses MailHog to capture outbound email in development and test environments through a local SMTP server, browser UI, and JSON API. It is a practical fit for debugging transactional mail, verifying templates, and testing delivery behavior without sending messages to real recipients.
Prerequisites
Docker, Homebrew, or Go
Installation
Use the upstream install or setup path that matches your environment:
- brew update && brew install mailhog
- go install github.com/mailhog/MailHog@latest
Requirements and caveats from upstream:
Docker
- Run it from Docker Hub or using the provided Dockerfile
- Requires Go 1.4+ to build.
Basic usage or getting-started notes:
Download and run MailHog
Manual installation
Extracted from upstream docs: https://raw.githubusercontent.com/mailhog/MailHog/HEAD/README.md