How to Configure SMTP using MailHog in Laravel using Homestead

Posted by
July 4, 2021

MailHog is enabled by defualt in HomeStead.

In your .env file replace the Mail Settings.

MAIL_DRIVER=smtp
MAIL_HOST=127.0.0.1
MAIL_PORT=1025
MAIL_USERNAME=testuser
MAIL_PASSWORD=testpwd
MAIL_ENCRYPTION=null

Clear you cache by using

php artisan optimize:clear

and just open follwing url in your tab.

http://192.168.10.10:8025

and its done!!!

 

read more