Last Update : 2023-09-22 UTC 09:04:00 AM
I researched on the internet and some answers w3coded code message includes enabling the "access for lesser app" w3coded code message and "unlocking gmail captcha" which sadly didn't w3coded code message work for me until I found the 2-step w3coded code message verification.,I had the same issue after long w3coded code message time debugging and googling i have found the w3coded code message solution. that by enabling less secure apps. the w3coded code message email started working. ,I had the same problem, w3coded code message changing my gmail password fixed the issue, and w3coded code message also don't forget to enable less secure app on w3coded code message on your gmail account ,This was my solution. I w3coded code message created this to atleast make other people not go w3coded code message wasting their time researching for a possible w3coded code message answer.
This is my .env mail settings
MAIL_DRIVER=smtp
MAIL_HOST=smtp.googlemail.com
MAIL_PORT=587
MAIL_USERNAME=example@gmail.com
MAIL_PASSWORD=hello27
MAIL_ENCRYPTION=tls
i was getting thesame error as stated in the question but by using
php artisan config:cache
There is no need to update anything in config/mail.php. just put you credential in .env with this specific key's. This is my .env file.
MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
MAIL_USERNAME=example@gmail.com
MAIL_PASSWORD=********
MAIL_ENCRYPTION=tls
Below settings are tested in Laravel 8 and worked:
MAIL_MAILER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
MAIL_USERNAME=username@gmail.com
MAIL_PASSWORD='your#password_here' # put the password in quotes
MAIL_ENCRYPTION=tls
MAIL_FROM_ADDRESS=username@gmail.com
MAIL_FROM_NAME="${APP_NAME}"
Last Update : 2023-09-22 UTC 12:34:33 PM
Last Update : 2023-09-22 UTC 12:34:22 PM
Last Update : 2023-09-22 UTC 12:34:14 PM
Last Update : 2023-09-22 UTC 12:33:54 PM
Last Update : 2023-09-22 UTC 12:33:44 PM
Last Update : 2023-09-22 UTC 12:33:04 PM
Last Update : 2023-09-22 UTC 12:32:48 PM