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.inifile and change smtp port to
smtp_port = 1025
- Change file:
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