1.安装完jira后,配置发送邮件出错具体报错如下:
An error has occurred with sending the test email:com.atlassian.mail.MailException: javax.mail.MessagingException: Exception reading response; nested exception is: java.net.SocketTimeoutException: Read timed out at com.atlassian.mail.server.impl.SMTPMailServerImpl.sendWithMessageId(SMTPMailServerImpl.java:225) at com.atlassian.mail.server.impl.SMTPMailServerImpl.send(SMTPMailServerImpl.java:162) at com.atlassian.jira.plugins.mail.webwork.SendTestMail.doExecute(SendTestMail.java:107) at webwork.action.ActionSupport.execute(ActionSupport.java:165) at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:63) at webwork.interceptor.DefaultInterceptorChain.proceed(DefaultInterceptorChain.java:39) at webwork.interceptor.NestedInterceptorChain.proceed(NestedInterceptorChain.java:31) at webwork.interceptor.ChainedInterceptor.intercept(ChainedInterceptor.java:16) at webwork.interceptor.DefaultInterceptorChain.proceed(DefaultInterceptorChain.java:35) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:225).....错误较多省略.........Caused by: java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.socketRead(SocketInputStream.java:116) at java.net.SocketInputStream.read(SocketInputStream.java:170) at java.net.SocketInputStream.read(SocketInputStream.java:141) at com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:124) at java.io.BufferedInputStream.fill(BufferedInputStream.java:246) at java.io.BufferedInputStream.read(BufferedInputStream.java:265) at com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:92) at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:2349) ... 256 more1.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.18.19.20.21.22.23.24.25.26.27.
2.排查方法
(1)网上搜索的解决办法中大部分都没有用,好多都是使用网易163邮箱做的配置,而我使用的邮箱是腾讯企业邮箱配置,测试一直发送不了,下面是第一个报错信息
AuthenticationFailedException: 535 Error: authentication failed1.
这个错误主要是我太粗心,没有配置发送的邮件密码,后面添加密码后这个错误解决。
(2)第二个报错信息
不幸的是, 没有连接是可能的。审查以下错误并纠正:
这里主要是端口问题,为465,测试报错,截图如下:
在这里修改端口成功解决,端口号可以是25,也可以是587,就是465会报错。
-----------------------------------------要克服生活的焦虑和沮丧,得先学会做自己的主人-----------------------------------------
免责声明:本文系网络转载或改编,未找到原创作者,版权归原作者所有。如涉及版权,请联系删