com.sun.mail.smtp.SMTPSendFailedException: 530 Authentication required 解决方案
来源:互联网 发布:mac唇部打底膏 编辑:程序博客网 时间:2024/05/18 17:03
530 Authentication required
com.sun.mail.smtp.SMTPSendFailedException: 530 Authentication required
at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1388)
at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:959)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:583)
at com.email.SendTextMail.send(SendTextMail.java:112)
at org.apache.jsp.sendMail_jsp._jspService(sendMail_jsp.java:71)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)
使用JSP发送新浪邮件的时候老是报下面这个异常,后来查资料只要如下改就可以了:
1 Properties props = System.getProperties();2 //指定SMTP服务器3 props.put("mail.smtp.host", SMTPHost);4 props.put("mail.smtp.auth", "true"); //true一定要加引号
把true加上引号就可以了。
- com.sun.mail.smtp.SMTPSendFailedException: 530 Authentication required 解决方案
- com.sun.mail.smtp.SMTPSendFailedException: 530 Authentication required 解决方案
- com.sun.mail.smtp.SMTPSendFailedException: 553 authentication is required,163 smtp9,DcCowACnMFm7ZwRZ
- 在Web工程中用JavaMail 发送邮件时报com.sun.mail.smtp.SMTPSendFailedException: 553 authentication is required原因
- com.sun.mail.smtp.SMTPSendFailedException: 554 MI:STC 0,smtp5
- com.sun.mail.smtp.SMTPSendFailedException: 553 Mail from must equal authorized user
- com.sun.mail.smtp.SMTPSendFailedException: 553 Mail from must equal authorized user
- com.sun.mail.smtp.SMTPSendFailedException: 554 DT:SPM 163 smtp11,D8CowAC3cuDofbZXKWsnCw--.47929S2 14
- com.sun.mail.smtp.SMTPSendFailedException: 554 MI:SPB UserReject 0,smtp7
- com.sun.mail.smtp.SMTPSendFailedException: 554 DT:SPM 163 smtp10,DsCowABX3qJtagRZBXMsBA--.8416S2 149
- Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 554 5.7.1
- maven项目(错误二) spring发送邮件报“com.sun.mail.smtp.SMTPAddressFailedException: 553 5.7.1”的解决方案
- DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Su
- com.sun.mail.smtp.SMTPAddressFailedException: 550 Invalid User: "xxxxxxx@163.com"
- javax.mail.MessagingException: 553 authentication is required
- javax.mail.MessagingException: 553 authentication is required
- javax.mail.MessagingException: 553 authentication is required
- javaMail邮件问题:java.lang.SecurityException: SHA1 digest error for com/sun/mail/smtp/SMTPTransport.class
- 详细解读Jquery各Ajax函数:$.get(),$.post(),$.ajax(),$.getJSON()
- 如何在网页标题栏title加入logo图标?
- jsp静态化和伪静态化<转载>
- 关于asynctask的取消操作
- 路遥《人生》读后感
- com.sun.mail.smtp.SMTPSendFailedException: 530 Authentication required 解决方案
- javaMail发邮件
- JAVA操作Excel表格
- JAVA WEB开发中处理乱码汇总
- java笔记一:类成员的初始化顺序
- Linux下VLAN功能的实现
- java笔记二:final关键字用法总结
- java打开本地应用程序
- 在网页中插入百度地图