Статья может пригодится тем, кто однажды, при попытке автоматической отправки письма, например ссылки на смену пароля, получил такой ответ от вебсервера: "
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 https://support.google.com/mail/?p=BadCredentials q5sm1241447ejc.117 - 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 https://support.google.com/mail/?p=BadCredentials q5sm1241447ejc.117 - 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 https://support.google.com/mail/?p=BadCredentials q5sm1241447ejc.117 - gsmtp
"