Solve error javax.mail.AuthenticationFailedException

后端 未结 15 1155
太阳男子
太阳男子 2020-11-29 05:45

I\'m not familiar with this function to send mail in java. I\'m getting an error while sending email to reset a password. Hope you can give me a solution.

Below is m

15条回答
  •  旧巷少年郎
    2020-11-29 06:18

    By default Gmail account is highly secured. When we use gmail smtp from non gmail tool, email is blocked. To test in our local environment, make your gmail account less secure as

    1. Login to Gmail.
    2. Access the URL as https://www.google.com/settings/security/lesssecureapps
    3. Select "Turn on"

提交回复
热议问题