user image

Jo Micheal
Published in : 2021-07-05

[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

web-brackets.com

Comments

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 …!

Leave a comment

Join us

Join our community and get the chance to solve your code issues & share your opinion with us

Sign up Now

Related posts

How to get original attribute value in Laravel?
Publish date: 2022-02-23 | Comments: 3
Laravel redirect to the last location after login
Publish date: 2022-02-21 | Comments: 1
tymon/jwt-auth 0.5.12 requires illuminate/support ~5.0
Publish date: 2022-02-18 | Comments: 2
Undefined Variable problem on Laravel 9.x
Publish date: 2022-03-06 | Comments: 3
How can I validate recaptcha in Livewire class ??
Publish date: 2022-02-23 | Comments: 2