Jo Micheal
Published in : 2021-07-05
Failed to authenticate on SMTP server with username using 3 possible authenticators. Authenticator LOGIN returned Expected response code 235 but got code "535", with message "535-5.7.8 Username and Password not accepted. Learn more at 535 5.7.8 //support.google.com/mail/?p=BadCredentials r11sm6684717ilh.33 - gsmtp ". Authenticator PLAIN returned Expected response code 235 but got code "535", with message "535-5.7.8 Username and Password not accepted. Learn more at 535 5.7.8 //support.google.com/mail/?p=BadCredentials r11sm6684717ilh.33 - gsmtp ". Authenticator XOAUTH2 returned 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 //support.google.com/mail/?p=BadCredentials r11sm6684717ilh.33 - gsmtp ".
I am getting this error while sending an email using my Laravel server, via “Gmail SMTP” (GSMTP), this is my first set up Gmail SMTP with laravel so please let me know if there is any solution? or where is the problem
Thanks in advance
Join our community and get the chance to solve your code issues & share your opinion with us
Sign up Now
Mohamed Atef Date : 2021-07-05
Best answers
51
Best answers
51
Hi, please make sure that you are using a Google app password, not your personal account password, this is the only way to can use GSMTP from your website, and you can find App password when you sign in to your account you will find it in Manage your Google account then security from the left nav then scroll down to find “Signing in to Google” and you will find App password you have to generate this password and use it into your .env instead of your personal password
Thanks
Jo Micheal Date : 2021-07-05
Okay let me check this, I was using the password of my account
Jo Micheal Date : 2021-07-05
That's works, Thanks you so much for your help
Mohamed Atef Date : 2021-07-05
You are welcome
Mohamed Atef Date : 2021-07-13
Best answers
51
Best answers
51
Great
bechir Marko Date : 2022-04-20
you are the best thanks
Jigar Malani Date : 2022-07-02
Bro your Are great …!