- 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
but this do in app localhost or cloud? need config anything in DNS for digital ocean for exemple? thanks