SMTP Error 535 (Invalid Authentication Data) Using PEAR Mail

I used the code https://stackoverflow.com/a/3/340/../ to try logging into both Gmail and my website server, and for them I got the same error:

authentication failure [SMTP: Invalid response code received from server (code: 535, response: Incorrect authentication data)] 

I have double and triple verification that usernames and passwords are correct (as they work from the desktop client) and remove the brackets around the username. What could be the problem?

+3
source share

Source: https://habr.com/ru/post/1437068/


All Articles