Solve error javax.mail.AuthenticationFailedException

后端 未结 15 1150
太阳男子
太阳男子 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:35

    trying to connect to host "smtp.gmail.com", port 465, isSSL false
    

    You got your gmail smtp setting wrong. Gmail requires SSL. Please see tutorials on how to send email via Java via Gmail SMTP, eg: http://www.mkyong.com/java/javamail-api-sending-email-via-gmail-smtp-example/

提交回复
热议问题