Laravel 5 email reset password
I am using Laravel 5, when I try to send an email through my site using Laravel 5 authentication service for password reset I get this exception:
Swift_TransportException on line AbstractSmtpTransport.php 383: Expected response code 250, but received code "535", with the message "535-5.7.8. Username and password not accepted. 535 5.7.8 https://support.google.com/ mail / answer / 14257 x14sm43954igx.1 - gsmtp "
Here is my env config
APP_ENV=local
APP_DEBUG=true
APP_KEY=GaBqPkX42wJuSzsmCPe0AM8Qx4AXAhAf
DB_HOST=localhost
DB_DATABASE=course
DB_USERNAME=root
DB_PASSWORD=root
CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=sync
MAIL_DRIVER=smtp
MAIL_HOST=smtp-relay.gmail.com
MAIL_PORT=465
MAIL_USERNAME=xxxxx@gmail.com
MAIL_PASSWORD=pass
what's wrong?
Thanks for your support!
+3
source to share
2 answers
Try allowing less secure apps to access your account. → "Enable (note for Google Apps users) https://support.google.com/accounts/answer/6010255
0
source to share