Inspired by MailCatcher, easier to install.
** No longer under development - see Go-MailHog **
cpanm --installdeps .
./bin/mailhog daemon --listen http://*:3000
The port specified is the Mojolicious application port, which currently does very little but will become the web UI to MailHog.
The SMTP server will attempt to listen on port 25 by default.
All SMTP configuration is currently in lib/MailHog.pm.
Development and production mode
Like any other Mojolicious application, you can start
You can also use any existing Mojolicious plugins in MailHog.
- Refactor to use Mojo::Base instead of Moose
- Use Mojo::EventEmitter for SMTP interface
- Add REST API for other applications and web UI
- Build web UI to interact with MailHog (potentially AngularJS/Bootstrap?)
- Add backend storage for message persistence (M3MTA backend?)
Fork and send a pull request!
Copyright © 2014, Ian Kent (http://www.iankent.eu).
Released under MIT license, see LICENSE for details.