DEV Community

Sam
Sam

Posted on

3 1 1 1 1

How to use Mailhog (Docker) with Laravel 9

Get Mailhog going with:
docker run -d -p 1025:1025 -p 8025:8025 mailhog/mailhog

Update your Laravel env file to have:

MAIL_MAILER=smtp
MAIL_HOST=0.0.0.0
MAIL_PORT=1025
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
Enter fullscreen mode Exit fullscreen mode

View your mailbox at http://localhost:8025.

Top comments (0)

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More

Best practices for optimal infrastructure performance with Magento

Running a Magento store? Struggling with performance bottlenecks? Join us and get actionable insights and real-world strategies to keep your store fast and reliable.

Tune in to the full event

DEV is partnering to bring live events to the community. Join us or dismiss this billboard if you're not interested. ❤️