javax.mail.MessagingException:553 authentication is required

懒得落花2022-10-04 11:39:541条回答

javax.mail.MessagingException:553 authentication is required,smtp2,DNGowLBbuQPU2mFIeZiQBw==.59922S2 1214372564 什么毛病?
我程序代码:
DataInputStream dis = new DataInputStream(request.getInputStream()) ;
String send = dis.readUTF() ;
String subject = dis.readUTF();
String content = dis.readUTF() ;
System.out.println(send+" -- "+subject+" -- "+content);
try {
Properties props = System.getProperties() ;
props.put("mail.smtp.host",host);
Session session = Session.getDefaultInstance(props,new MyAuthenticator()) ;
MimeMessage message = new MimeMessage(session) ;
message.setFrom(new InternetAddress(from)) ;
message.addRecipient(Message.RecipientType.TO,new
InternetAddress(send));
message.setSubject(subject) ;
message.setText(content) ;
Store store = session.getStore("pop3") ;
store.connect("pop3.163.com","****","****");
Transport.send(message) ;
} catch (Exception e) {
e.printStackTrace();
} finally{
dis.close() ;
}

已提交,审核后显示!提交回复

共1条回复
jie303030 共回答了9个问题 | 采纳率100%
这是javamail的验证方法中的一种改写Authenticator的getPasswordAuthentication()方法private class Authenticator extends javax.mail.Authenticator{public PasswordAuthentication getPasswordAuthentication(){S...
1年前

相关推荐

The New York Times started ________ new text messaging servi
The New York Times started ________ new text messaging service that delivers _________ latest news
A./; / B.the; the
C.a; the D.the; a
难言之痛1年前3
fygq 共回答了21个问题 | 采纳率90.5%
选b,service 后有定语从句修饰,所以前面必须加the 特指
最新的新闻,the lasted,最高级,the 也是必须的
英语翻译she thought that text messaging had made students believ
英语翻译
she thought that text messaging had made students believe that it was far more acceptable than it actually was to just make terrible spelling and grammatical errors.
沉甸甸的1年前1
shiningstar 共回答了13个问题 | 采纳率100%
她认为事实并不像短信息使学生认为的那样,发生严重的拼写和语法错误是可以接受的.
英语翻译Content adaptation for multimedia messaging services has
英语翻译
Content adaptation for multimedia messaging services has occurred in terms of picture and voice .however,the development of modern wireless networks demands media applications,such as video,and therefore video adaptation.There are several IMS scenarios that would require video adaptation:for video messaging ;for video portals; for video telephony and for video group communication.
Many forms of adaptation already exist in communication systems to address various problems that might arise in these scenarios.Most notable is the wireless link-layer adaptation for wireless communications to improve throughput.Our transcoding solution can be considered the adaptation in the application layer.As we shall discuss later,this transcoding is needed for video applications to respond to changing throughput caused by link-layer adaptation,and to bridge other forms of diversity.
liuyang1111年前2
jiangaicd 共回答了22个问题 | 采纳率86.4%
内容改编为多媒体信息服务方面的发生.然而,图片和声音的发展要求,现代无线网络媒体的应用软件,如视频,并因此视频相适应.有几种IMS方案,需要视频改编:视频短信;视频门户;视频电话和视频群体沟通.许多形式的适应已经存...

大家在问