Skip to content

Instantly share code, notes, and snippets.

@stevenrombauts
Created May 20, 2020 12:12
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevenrombauts/c7e41a67461ce11db2d73621ec522d2f to your computer and use it in GitHub Desktop.
Save stevenrombauts/c7e41a67461ce11db2d73621ec522d2f to your computer and use it in GitHub Desktop.
Use Mailhog to test e-mails
  1. Download Mailhog binary:
wget https://github.com/mailhog/MailHog/releases/download/v1.0.0/MailHog_linux_amd64 -O mailhog
chmod +x mailhog
  1. Start Mailhog:
./mailhog
  1. Configure Laravel to send emails to Mailhog in .env
MAIL_DRIVER=smtp
MAIL_HOST=127.0.0.1
MAIL_PORT=1025
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
  1. Send mails and review them in Mailhog at localhost:8025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment