send mail via SMTP Gmail Oauth2 issue

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

    try adding these to your props config..

      props.put("mail.smtp.auth", true);
      props.put("mail.smtp.starttls.enable", true);
    

提交回复
热议问题