Using Mailhog With Homestead

Environment File

If you use Homestead for your Laravel development you already have mailhog installed and can use it straight away, all you have to do is change your mail environment settings in your .env to the following.

MAIL_DRIVER=smtp 
MAIL_HOST=0.0.0.0
MAIL_PORT=1025
MAIL_USERNAME=testuser
MAIL_PASSWORD=password
MAIL_ENCRYPTION=null

Mailhog Github

To learn more about mailhog and keep up to date with any updates you can follow the package on github.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store