失败:Sending the email to the following server failed : smtp.mxhichina.com:465
8 回复
开通smtp了吗?密码对了吗?
来自炫酷的 NutzCN
Caused by: javax.mail.AuthenticationFailedException: 526 Authentication failure[0] 这个提示感觉是校验不通过,但是我用账号和密码可以登入阿里云企业邮箱
贴一下详细报错
来自炫酷的 NutzCN
12:38:20.643 INFO (AdminlteModule.java:68) sendTestMail - send mail fail
org.apache.commons.mail.EmailException: Sending the email to the following server failed : smtp.mxhichina.com:465
at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1421) ~[nutzcn-core-3.1.0.jar:3.1.0]
at net.wendal.nutzbook.core.service.impl.EmailServiceImpl.send(EmailServiceImpl.java:29) ~[nutzcn-core-3.1.0.jar:3.1.0]
at net.wendal.nutzbook.adminlte.module.AdminlteModule.sendTestMail(AdminlteModule.java:64) [nutzcn-adminlte-3.1.0.jar:3.1.0]
at net.wendal.nutzbook.adminlte.module.AdminlteModule$FM$sendTestMail$8ca68ff379736e775d8f0116d4dbb445.invoke(AdminlteModule.java) [nutz-1.r.65-SNAPSHOT.jar:3.1.0]
at org.nutz.mvc.impl.processor.MethodInvokeProcessor.process(MethodInvokeProcessor.java:31) [nutz-1.r.65-SNAPSHOT.jar:1.r.65-SNAPSHOT]
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44) [nutz-1.r.65-SNAPSHOT.jar:1.r.65-SNAPSHOT]
at org.nutz.mvc.impl.processor.AdaptorProcessor.process(AdaptorProcessor.java:30) [nutz-1.r.65-SNAPSHOT.jar:1.r.65-SNAPSHOT]
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44) [nutz-1.r.65-SNAPSHOT.jar:1.r.65-SNAPSHOT]
at org.nutz.mvc.impl.processor.ActionFiltersProcessor.process(ActionFiltersProcessor.java:58) [nutz-1.r.65-SNAPSHOT.jar:1.r.65-SNAPSHOT]
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44) [nutz-1.r.65-SNAPSHOT.jar:1.r.65-SNAPSHOT]
at org.nutz.integration.shiro.NutShiroProcessor.process(NutShiroProcessor.java:126) [nutzcn-core-3.1.0.jar:3.1.0]
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44) [nutz-1.r.65-SNAPSHOT.jar:1.r.65-SNAPSHOT]
at org.nutz.mvc.impl.processor.ModuleProcessor.process(ModuleProcessor.java:123) [nutz-1.r.65-SNAPSHOT.jar:1.r.65-SNAPSHOT]
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44) [nutz-1.r.65-SNAPSHOT.jar:1.r.65-SNAPSHOT]
at org.nutz.mvc.impl.processor.EncodingProcessor.process(EncodingProcessor.java:27) [nutz-1.r.65-SNAPSHOT.jar:1.r.65-SNAPSHOT]
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44) [nutz-1.r.65-SNAPSHOT.jar:1.r.65-SNAPSHOT]
at org.nutz.mvc.impl.processor.UpdateRequestAttributesProcessor.process(UpdateRequestAttributesProcessor.java:15) [nutz-1.r.65-SNAPSHOT.jar:1.r.65-SNAPSHOT]
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44) [nutz-1.r.65-SNAPSHOT.jar:1.r.65-SNAPSHOT]
at net.wendal.nutzbook.common.mvc.DailyUniqueUsersProcessor.process(DailyUniqueUsersProcessor.java:45) [nutzcn-core-3.1.0.jar:3.1.0]
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44) [nutz-1.r.65-SNAPSHOT.jar:1.r.65-SNAPSHOT]
at net.wendal.nutzbook.common.mvc.LogTimeProcessor.process(LogTimeProcessor.java:19) [nutzcn-core-3.1.0.jar:3.1.0]
at org.nutz.mvc.impl.NutActionChain.doChain(NutActionChain.java:44) [nutz-1.r.65-SNAPSHOT.jar:1.r.65-SNAPSHOT]
at org.nutz.mvc.impl.ActionInvoker.invoke(ActionInvoker.java:67) [nutz-1.r.65-SNAPSHOT.jar:1.r.65-SNAPSHOT]
at org.nutz.mvc.ActionHandler.handle(ActionHandler.java:31) [nutz-1.r.65-SNAPSHOT.jar:1.r.65-SNAPSHOT]
at org.nutz.mvc.NutFilter.doFilter(NutFilter.java:202) [nutz-1.r.65-SNAPSHOT.jar:1.r.65-SNAPSHOT]
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637) [jetty-servlet-9.4.8.v20171121.jar:9.4.8.v20171121]
at org.nutz.plugins.hotplug.HotplugFilter.doFilter(HotplugFilter.java:73) [nutzcn-core-3.1.0.jar:3.1.0]
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637) [jetty-servlet-9.4.8.v20171121.jar:9.4.8.v20171121]
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449) [nutzcn-core-3.1.0.jar:3.1.0]
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365) [nutzcn-core-3.1.0.jar:3.1.0]
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90) [nutzcn-core-3.1.0.jar:3.1.0]
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83) [nutzcn-core-3.1.0.jar:3.1.0]
at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383) [nutzcn-core-3.1.0.jar:3.1.0]
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362) [nutzcn-core-3.1.0.jar:3.1.0]
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125) [nutzcn-core-3.1.0.jar:3.1.0]
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1629) [jetty-servlet-9.4.8.v20171121.jar:9.4.8.v20171121]
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:533) [jetty-servlet-9.4.8.v20171121.jar:9.4.8.v20171121]
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) [jetty-server-9.4.8.v20171121.jar:9.4.8.v20171121]
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548) [jetty-security-9.4.8.v20171121.jar:9.4.8.v20171121]
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) [jetty-server-9.4.8.v20171121.jar:9.4.8.v20171121]
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:190) [jetty-server-9.4.8.v20171121.jar:9.4.8.v20171121]
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595) [jetty-server-9.4.8.v20171121.jar:9.4.8.v20171121]
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188) [jetty-server-9.4.8.v20171121.jar:9.4.8.v20171121]
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1253) [jetty-server-9.4.8.v20171121.jar:9.4.8.v20171121]
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:168) [jetty-server-9.4.8.v20171121.jar:9.4.8.v20171121]
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473) [jetty-servlet-9.4.8.v20171121.jar:9.4.8.v20171121]
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564) [jetty-server-9.4.8.v20171121.jar:9.4.8.v20171121]
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:166) [jetty-server-9.4.8.v20171121.jar:9.4.8.v20171121]
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1155) [jetty-server-9.4.8.v20171121.jar:9.4.8.v20171121]
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) [jetty-server-9.4.8.v20171121.jar:9.4.8.v20171121]
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:219) [jetty-server-9.4.8.v20171121.jar:9.4.8.v20171121]
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126) [jetty-server-9.4.8.v20171121.jar:9.4.8.v20171121]
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) [jetty-server-9.4.8.v20171121.jar:9.4.8.v20171121]
at org.eclipse.jetty.server.Server.handle(Server.java:530) [jetty-server-9.4.8.v20171121.jar:9.4.8.v20171121]
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:347) [jetty-server-9.4.8.v20171121.jar:9.4.8.v20171121]
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:256) [jetty-server-9.4.8.v20171121.jar:9.4.8.v20171121]
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279) [jetty-io-9.4.8.v20171121.jar:9.4.8.v20171121]
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:102) [jetty-io-9.4.8.v20171121.jar:9.4.8.v20171121]
at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124) [jetty-io-9.4.8.v20171121.jar:9.4.8.v20171121]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:247) [jetty-util-9.4.8.v20171121.jar:9.4.8.v20171121]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.produce(EatWhatYouKill.java:140) [jetty-util-9.4.8.v20171121.jar:9.4.8.v20171121]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131) [jetty-util-9.4.8.v20171121.jar:9.4.8.v20171121]
at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:382) [jetty-util-9.4.8.v20171121.jar:9.4.8.v20171121]
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:708) [jetty-util-9.4.8.v20171121.jar:9.4.8.v20171121]
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:626) [jetty-util-9.4.8.v20171121.jar:9.4.8.v20171121]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_144]
Caused by: javax.mail.AuthenticationFailedException: 526 Authentication failure[0]
at com.sun.mail.smtp.SMTPTransport$Authenticator.authenticate(SMTPTransport.java:892) ~[nutzcn-core-3.1.0.jar:3.1.0]
at com.sun.mail.smtp.SMTPTransport.authenticate(SMTPTransport.java:814) ~[nutzcn-core-3.1.0.jar:3.1.0]
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:728) ~[nutzcn-core-3.1.0.jar:3.1.0]
at javax.mail.Service.connect(Service.java:386) ~[nutzcn-core-3.1.0.jar:3.1.0]
at javax.mail.Service.connect(Service.java:245) ~[nutzcn-core-3.1.0.jar:3.1.0]
at javax.mail.Service.connect(Service.java:194) ~[nutzcn-core-3.1.0.jar:3.1.0]
at javax.mail.Transport.send0(Transport.java:253) ~[nutzcn-core-3.1.0.jar:3.1.0]
at javax.mail.Transport.send(Transport.java:124) ~[nutzcn-core-3.1.0.jar:3.1.0]
at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1411) ~[nutzcn-core-3.1.0.jar:3.1.0]
... 65 more
12:38:20.645 DEBUG (LogTimeProcessor.java:24) process - [POST]URI=/adminlte/test/mail 200 803ms
Authentication failure 用户名没写全?要写邮箱地址
来自炫酷的 NutzCN
哦,好的
来自炫酷的 NutzCN
添加回复
请先登陆