0
回答
在Exchenge2010的owa界面可以向163的邮箱发送邮件,但是用javamail不可以
华为云实践训练营,热门技术免费实践!>>>   
javax.mail.SendFailedException: Invalid Addresses;
  nested exception is:
        com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay

        at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1446)
        at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:736)
        at javax.mail.Transport.send0(Transport.java:191)
        at javax.mail.Transport.send(Transport.java:142)
        at com.messagesolution.comm.relaymessage.Sendmail.smtp_noAuth(Sendmail.java:349)
        at com.messagesolution.comm.relaymessage.Sendmail.sendmails_noauth(Sendmail.java:441)
        at com.messagesolution.comm.relaymessage.Sendmail.sendmailsEx(Sendmail.java:402)
        at com.messagesolution.comm.relaymessage.RealSendMail.licenseSystemSendEmail(RealSendMail.java:79)
        at com.messagesolution.webapp.action.licenseSystem.OrderLicenseHistoryAction.doRealSendLicense(OrderLicenseHistoryAction.java:358)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at webwork.action.ActionSupport.invokeCommand(ActionSupport.java:374)
        at webwork.action.ActionSupport.execute(ActionSupport.java:107)
        at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:113)
        at webwork.dispatcher.ServletDispatcher.service(ServletDispatcher.java:161)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at com.messagesolution.webapp.servlet.WebServlet.service(WebServlet.java:190)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at com.messagesolution.webapp.filter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:32)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at com.messagesolution.webapp.servlet.LoginFilter.doFilter(LoginFilter.java:283)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Thread.java:662)
Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay

        at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1297)
        ... 36 more
QUIT
221 2.0.0 Service closing transmission channel
<无标签>
举报
路人丁语
发帖于2年前 0回/91阅
顶部