Install MailCatcher (https://rubygems.org/gems/mailcatcher/versions/0.5.12)
brew install ruby
sudo gem install mailcatcher
Then set it a daemon: https://gist.github.com/sj26/1638617
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 [email protected]