Exception to fix javax.mail.AuthenticationFailedException exception

前端 未结 2 486
误落风尘
误落风尘 2021-01-24 06:27

I am learning how to send an email with javamail API, i have created the necessary properties and instructions to send a simple email using SMTP server, and i am using this code

2条回答
  •  隐瞒了意图╮
    2021-01-24 06:48

    First, read this JavaMail FAQ entry about common mistakes. After correcting them, read this JavaMail FAQ entry that tells you how to connect to Gmail. If it still doesn't work, this JavaMail FAQ entry about debugging will help.

提交回复
热议问题