Skip to content

Instantly share code, notes, and snippets.

@mrabbani
Last active January 8, 2024 01:45
Show Gist options
  • Save mrabbani/33a6260ba52073a52cb5 to your computer and use it in GitHub Desktop.
Save mrabbani/33a6260ba52073a52cb5 to your computer and use it in GitHub Desktop.
Laravel Mailgun Setup

Mailgun setup

  • install Guzzle HTTP library : composer require guzzlehttp/guzzle
  • [sign up to mailgun] (http://www.mailgun.com)
  • Go to Domains tab and click on domains
  • You will find the necessary data for .env setup
    • MAIL_DRIVER=mailgun
    • MAIL_HOST=smtp.mailgun.org
    • MAIL_PORT=587
    • MAIL_USERNAME=[email protected]
    • MAIL_PASSWORD=502fd951f7------------------------
    • MAILGUN_DOMAIN=sandbox21f9a-----------------------166f.mailgun.org
    • MAILGUN_SECRET=key-ee-----------------------------

-Now your mailgun configuration is complete and your are to send email

@alonzosims
Copy link

Thank you for taking the time and pointing everything out

@Popov-VV
Copy link

Popov-VV commented May 3, 2019

@dswebsites Thank you very much

@ahmedsammygeek
Copy link

thanks alot , this was very usual

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