send mail via SMTP Gmail Oauth2 issue

后端 未结 6 549
没有蜡笔的小新
没有蜡笔的小新 2021-01-03 12:06

I can authenticated to SMTP by following the google example.

But the problem now is I can\'t send out the mail. I am getting the following error whenever I try to se

6条回答
  •  执笔经年
    2021-01-03 12:38

    Sorry people, answer is here: Javamail api in android using XOauth I tested, it works.

    "SMS style login" failure - Secure accounts with 2 step login (via phone SMS) reject sending email via SMTP (both RAW password & OAuth style, fail with a Authentication error). They will let you create the OAuth token but will not send email.

提交回复
热议问题