close

[Solved] Expected response code 250 but got code “535”, with message “535-5.7.8 Username and Password not accepted

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error Expected response code 250 but got code “535”, with message “535-5.7.8 Username and Password not accepted in php. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How Expected response code 250 but got code “535”, with message “535-5.7.8 Username and Password not accepted Error Occurs?

Today I get the following error Expected response code 250 but got code “535”, with message “535-5.7.8 Username and Password not accepted in php.

How To Solve Expected response code 250 but got code “535”, with message “535-5.7.8 Username and Password not accepted Error ?

  1. How To Solve Expected response code 250 but got code “535”, with message “535-5.7.8 Username and Password not accepted Error ?

    To Solve Expected response code 250 but got code “535”, with message “535-5.7.8 Username and Password not accepted Error

  2. Enable “Allow less secure apps” on your google account security policy.Restart your local servers.
  3. To Solve Expected response code 250 but got code “535”, with message “535-5.7.8 Username and Password not accepted Error

    To Solve Expected response code 250 but got code “535”, with message “535-5.7.8 Username and Password not accepted Error

  4. Enable “Allow less secure apps” on your google account security policy.Restart your local servers.

Solution 1

 had the same problem, changing my gmail password fixed the issue, and also don’t forget to enable less secure app on on your gmail account

Solution 2

I had the same problem, then I did this two steps:

  • Enable “Allow less secure apps” on your google account security policy.
  • Restart your local servers.

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you? Thank You.

Also, Read

Leave a Comment