Skip to content

Instantly share code, notes, and snippets.

@patrickmaciel
Created April 18, 2021 00:30
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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('phpisbetterthanjava@gmail.com')->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