javax.mail.AuthenticationFailedException: 534-5.7.14 <https://accounts.google.com/signin/continue?sarp=1

后端 未结 3 1425
孤独总比滥情好
孤独总比滥情好 2021-01-01 04:19

I get the following message when trying to send email from an application. Though I have the mail.jar added for my project, it still gives me the same error. P

3条回答
  •  旧巷少年郎
    2021-01-01 05:05

    Acoording to Security and privacy. Google may block sign-in attempts from some apps that do not use modern security standards, such as OAuth 2.0.

    For javamail, the solution prevent this error is :

    1. Go to the "Less secure apps" section in Google Account.
    2. Next to "Access for less secure apps," select Turn on.

提交回复
热议问题