在帆软的决策平台,定时调度的邮件,偶尔会发送失败,我也没动过设置,这是什么原因?我该怎么解决

邮件发送失败

com.fr.schedule.output.EmailException: javax.mail.MessagingException: Can't send command to SMTP host;

nested exception is:

    java.net.SocketException: Connection closed by remote host

    at com.fr.schedule.output.EmailNotification.doFileAction(Unknown Source)

    at com.fr.schedule.output.EmailNotification.doFileAction(Unknown Source)

    at com.fr.fs.schedule.job.DoFileActionJob.doFileAction(Unknown Source)

    at com.fr.fs.schedule.job.ViewReportletJob.executeReportByUsername(Unknown Source)

    at com.fr.fs.schedule.job.ViewReportletJob.executeScheduledOutput(Unknown Source)

    at com.fr.fs.schedule.job.ViewReportletJob.executeReport(Unknown Source)

    at com.fr.fs.schedule.job.ReportletJob.execute(Unknown Source)

    at com.fr.third.org.quartz.core.JobRunShell.run(JobRunShell.java:202)

    at com.fr.third.org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)

Caused by: javax.mail.MessagingException: Can't send command to SMTP host;

nested exception is:

    java.net.SocketException: Connection closed by remote host

    at com.sun.mail.smtp.SMTPTransport.sendCommand(SMTPTransport.java:1564)

    at com.sun.mail.smtp.SMTPTransport.sendCommand(SMTPTransport.java:1551)

    at com.sun.mail.smtp.SMTPTransport.issueCommand(SMTPTransport.java:1476)

    at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1512)

    at com.sun.mail.smtp.SMTPTransport.finishData(SMTPTransport.java:1321)

    at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:637)

    at com.fr.base.EmailManager.send(Unknown Source)

    at com.fr.base.EmailManager.send(Unknown Source)

    ... 9 more

Caused by: java.net.SocketException: Connection closed by remote host

    at sun.security.ssl.SSLSocketImpl.checkWrite(Unknown Source)

    at sun.security.ssl.AppOutputStream.write(Unknown Source)

    at com.sun.mail.util.TraceOutputStream.write(TraceOutputStream.java:114)

    at java.io.BufferedOutputStream.flushBuffer(Unknown Source)

    at java.io.BufferedOutputStream.flush(Unknown Source)

    at com.sun.mail.smtp.SMTPTransport.sendCommand(SMTPTransport.java:1562)

    ... 16 more


FineBI 陈光明 发布于 2019-12-5 10:14
1min目标场景问卷 立即参与
回答问题
悬赏:5 F币 + 添加悬赏
提示:增加悬赏、完善问题、追问等操作,可使您的问题被置顶,并向所有关注者发送通知
共1回答
最佳回答
0
zsh331Lv8专家互助
发布于2019-12-5 10:18(编辑于 2019-12-5 10:19)

楼主:邮箱的发送者或者接受者的名字写错了,检查下!或 邮箱配置“端口”有异常!

  • 陈光明 陈光明(提问者) 没有啊,我没有改过设置,昨天发送失败,今天成功
    2019-12-05 10:19 
  • zsh331 zsh331 回复 陈光明(提问者) 邮箱正常的话,感觉端口不稳定,着重检查端口,如果真不行,就重新配置下邮箱。
    2019-12-05 10:32 
  • 陈光明 陈光明(提问者) 回复 zsh331 其实我是个新手,我不知道该怎么去调整,这些设置都是岗位前任做好的, 离职了,我接手,不懂这些; 请问一下该如何去检查端口是稳定性?
    2019-12-05 10:39 
  • zsh331 zsh331 回复 陈光明(提问者) 邮箱-https://help.finereport.com/doc-view-2216.html
    2019-12-05 10:41 
  • 2关注人数
  • 978浏览人数
  • 最后回答于:2019-12-5 10:19
    请选择关闭问题的原因
    确定 取消
    返回顶部