0
votes

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
[email protected]
MAIL_PASSWORD=
MAIL_ENCRYPTION=tls
1
Have you set Mail_password to anything?wahdan

1 Answers

2
votes

try this:

MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
[email protected]
MAIL_PASSWORD=""
MAIL_ENCRYPTION=tls

Make sure that your password is rounded by the double quotes "".