Last active
April 17, 2018 06:23
-
-
Save tidalgo22/daa744fb3fe2f1faba7e3030d03bd03c to your computer and use it in GitHub Desktop.
Laravel with SMTP Gmail Setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.env | |
MAIL_DRIVER=smtp | |
MAIL_HOST=smtp.gmail.com | |
MAIL_PORT=587 | |
[email protected] | |
MAIL_PASSWORD= App password for 2-step verification | |
MAIL_ENCRYPTION=tls | |
[email protected] | |
MAIL_FROM_NAME=John Doe | |
enable the 2-step verification to google https://www.google.com/landing/2step/ | |
Create App Password to be use by your system https://accounts.google.com/ServiceLogin?service=accountsettings&passive=1209600&osid=1&continue=https://myaccount.google.com/apppasswords&followup=https://myaccount.google.com/apppasswords&rart=ANgoxcdIkp402LNsTNp9iWd88aWql7DSS7Bg9h7gerdw-Co_wjj_cd6J1NYSIrJKddbjNsrJYWaFqqpnrS7RvDGSkc5iX4d-lg&authuser=0 | |
I selected Others (custom name) and clicked generate | |
then do: | |
php artisan config:clear | |
php artisan config:cache |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment