Skip to main content

Mailhog in Ubuntu Vagrant box

Useful to test email sending on local development ...

Install Mailhog:

sudo apt-get -y install golang-go

sudo apt-get install git

go install

Install as sendmail


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:


Check emails on vagrant server

Use your local server IP and Port 8025, fEx: