4/2/2017 - 10:20 PM

Install Mailcatcher on OSX

Install Mailcatcher on OSX

Install MailCatcher (

brew install ruby
sudo gem install mailcatcher

Then set it a daemon:

To setup PHP: edit php.ini (on OSX brew, /usr/local/etc/php/5.5/conf.d/mailcatcher.ini and paste the following configuration:

sendmail_path = /usr/bin/env catchmail -f

put any email you want instead of

If you got a `require': cannot load such file -- i18n/core_ext/string/interpolate (LoadError) exception:

sudo gem uninstall i18n
sudo gem install i18n -v 0.6.11
sudo gem install interpolate


Visit the mailcatcher backend : http://localhost:1080

To test it:

php -r "mail('', 'test', 'test');"