Expected response code 250 but got code "535", with message "535-5.7.8 Username and Password not accepted. Learn more at
535 5.7.8 https://support.google.com/mail/?p=BadCredentials z7sm6546905pgb.24 – gsmt
This error occurs when I try to send email
QUEUE_DRIVER=database
MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
MAIL_USERNAM=taibarani780@gmail.com
MAIL_PASSWORD=
MAIL_ENCRYPTION=tls
Best Answer
try this:
Make sure that your password is rounded by the double quotes "".