📫 Homebrew Mailhog
Don't use this tap, use official repo!
Mailhog formula is now available in official Homebrew repository (see the PR). This tap is obsolete now and formula file is removed, but installation instructions are updated to guide you through the setup.
How do I install the formula?
brew install mailhog
Or install via URL (which will not receive updates):
brew install https://raw.githubusercontent.com/Homebrew/homebrew/master/Library/Formula/mailhog.rb
There are couple of ways to start
brew services start mailhogif you have
$(brew --prefix)/bin/MailHog &if you want to start it manually.
http://127.0.0.1:8025 and start using. (Give it couple of seconds to boot.)
If you want to run MailHog manually, you can use command line options to configure MailHog.
MailHog as sendmail replacement
To use MailHog as a sendmail replacement for PHP, add the following line to your
sendmail_path = $HOMEBREW_PREFIX/bin/MailHog sendmail test@test
$HOMEBREW_PREFIX with the path where your Homebrew is installed. Restart PHP process after you make the change to
php.ini file. Refer to
brew info mailhog to see the full path to MailHog on your system.