我已经验证了我的AuthSmtp设置。我确信一切都是完美的。无法确定无法发送邮件的原因。
我运行所有测试并且Hudson尝试发送邮件后得到此异常
ERROR: Unknown SMTP host: mail.authsmtp.com
javax.mail.MessagingException: Unknown SMTP host: mail.authsmtp.com;
nested exception is:
java.net.UnknownHostException: mail.authsmtp.com
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1932)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:638)
at javax.mail.Service.connect(Service.java:295)
at hudson.tasks.Mailer$DescriptorImpl.send(Mailer.java:509)
at hudson.tasks.Mailer$DescriptorImpl.send(Mailer.java:476)
at hudson.tasks.MailSender.execute(MailSender.java:91)
at hudson.tasks.Mailer.perform(Mailer.java:112)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:34)
at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:646)
at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:624)
at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:600)
at hudson.model.Build$RunnerImpl.post2(Build.java:163)
at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:566)
at hudson.model.Run.run(Run.java:1414)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:40)
at hudson.model.ResourceController.execute(ResourceController.java:82)
at hudson.model.Executor.run(Executor.java:137)
Caused by: java.net.UnknownHostException: mail.authsmtp.com
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:175)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:385)
at java.net.Socket.connect(Socket.java:546)
at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:286)
at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:231)
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1900)
... 16 more
[DEBUG]跳过监视的依赖关系更新; build未配置触发器:feature-mentoring-connections-v2#102 完成:成功
可能出错的地方。
答案 0 :(得分:0)
找不到服务器“mail.authsmtp.com”
java.net.UnknownHostException: mail.authsmtp.com