Skip to content

Instantly share code, notes, and snippets.

@patrickmaciel
Created April 18, 2021 00:30
Show Gist options
  • Save patrickmaciel/20b3035ee5e0a11e2dcfdcf9b44ab217 to your computer and use it in GitHub Desktop.
Save patrickmaciel/20b3035ee5e0a11e2dcfdcf9b44ab217 to your computer and use it in GitHub Desktop.
Laragon + Mailhog

START HERE

UPDATE YOUR .ENV FILE

MAIL_MAILER=smtp MAIL_HOST=localhost MAIL_PORT=1025 MAIL_USERNAME=null MAIL_PASSWORD=null MAIL_ENCRYPTION=null

SEND THE EMAIL

Mail::to('[email protected]')->send(new YourMailableClass([]));

:)

@sovetski
Copy link

Thank you man!!!

@MubinSayed
Copy link

Open Laragon's Procfile (Menu > Laragon > Procfile) and add these lines:

MailHog: MailHog.exe autorun
MailHog Admin: http://localhost:8025/ autorun

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment