If you use Vagrant and VVV for WordPress development, this might be useful for you. MailCatcher is the latest tool added to VVV. To make it work properly, please do the following:
- You need to edit
php.ini
file and change smtp port tosmtp_port = 1025
- Change file:
/etc/php5/mods-available/mailcatcher.ini
to:sendmail_path = "/usr/local/bin/catchmail -f [email protected]"
- Restart nginx and php-fpm
All should work properly after and you can catch mail sent by php mail
function