JavaMail实现发邮件时,遇到错误,以下时错误的情形?

javax.mail.AuthenticationFailedException
atjavax.mail.Service.connect(Service.java:306)
atjavax.mail.Service.connect(Service.java:156)
atcom.gotobus.util.email.Email.main(Email.java:119)
-------错误的异常情况------------
-----------异常代码出错的位置-------
//发送邮件
Transporttransport;
msg.saveChanges();//存储邮件信息
transport=mailSession.getTransport("smtp");
*transport.connect("smtp.qq.com","2668208858@qq.com","xrl123456");*
transport.sendMessage(msg,msg.getAllRecipients());//发送邮件,其中第二个参数是所有
慕村9548890
浏览 439回答 2
2回答
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

JavaScript