user

Jo Micheal

5 Jul 2021

[SOLVED] Failed to authenticate on SMTP server (gsmtp) code 535

Laravel

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 ".

Authenticator LOGIN returned Expected response code 235 but got code "535"

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

Comments

Mohamed Atef

5 Jul 2021

Best Answer

best answer
githubgithubgithub

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

Replies

Jo Micheal

5 Jul 2021

Okay let me check this, I was using the password of my account

Jo Micheal

5 Jul 2021

That's works, Thanks you so much for your help

Mohamed Atef

5 Jul 2021

githubgithubgithub

You are welcome

Mohamed Atef

13 Jul 2021

githubgithubgithub

Great

bechir Marko

20 Apr 2022

you are the best thanks 

Jigar Malani

2 Jul 2022

Bro your Are great …!

© 2024 Copyrights reserved for web-brackets.com