send mail via SMTP Gmail Oauth2 issue

后端 未结 6 592
没有蜡笔的小新
没有蜡笔的小新 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:36

    You just need to authenticate. Follow this example, it also uses gmail: http://www.mkyong.com/java/javamail-api-sending-email-via-gmail-smtp-example/

提交回复
热议问题