Useful to test email sending on local development ...
Install Mailhog:
sudo apt-get -y install golang-go
sudo apt-get install git
go install github.com/mailhog/MailHog@latest
Install as sendmail
wget https://github.com/mailhog/mhsendmail/releases/download/v0.2.0/mhsendmail_linux_amd64
sudo chmod +x mhsendmail_linux_amd64
sudo mv mhsendmail_linux_amd64 /usr/local/bin/mhsendmail
Configure as default mailer in php.ini
sendmail_path = /usr/local/bin/mhsendmail
Don't forget to restart apache
Before sending mails, you have to start mailhog:
~/go/bin/MailHog
Check emails on vagrant server
Use your local server IP and Port 8025, fEx: http://192.168.33.50:8025