Mailcatcher makes it super easy to preview emails locally for development. These instructions let you run it all the time in the background on OS X.
Note: This assumes you are using rbenv
First, install mailcatcher. Do this in your home directory because it often has gem conflicts otherwise.
cd ~ && gem install mailcatcher
Now copy the me.mailcatcher.plist
file below and paste it as a launch agent:
pbpaste > ~/Library/LaunchAgents/me.mailcatcher.plist
Now load it with launchctl
:
launchctl load ~/Library/LaunchAgents/me.mailcatcher.plist
Install Pow:
curl get.pow.cx | sh
Set up a Pow alias to make mailcatcher's URL easy to remember:
echo 1080 > ~/.pow/mail
Now just go to http://mail.dev and you're good to go!