定时调度发送邮件部分失败,再发一次能成功一般是什么原因

邮件发送失败
com.fr.schedule.output.EmailException: javax.mail.MessagingException: Could not connect to SMTP host: SMTP.163.com, port: 25, response: -1
    at com.fr.schedule.output.EmailNotification.doFileAction(Unknown Source)
    at com.fr.fs.schedule.job.ViewReportletJob.excuteSendMailByUserName(Unknown Source)
    at com.fr.fs.schedule.job.ViewReportletJob.dealWithFileActions(Unknown Source)
    at com.fr.fs.schedule.job.AnalyReportletJob.executeReportByUsername(Unknown Source)
    at com.fr.fs.schedule.job.ViewReportletJob.createCRPByUsername(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: Could not connect to SMTP host: SMTP.163.com, port: 25, response: -1
    at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1949)
    at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:654)
    at javax.mail.Service.connect(Service.java:295)
    at javax.mail.Service.connect(Service.java:176)
    at com.fr.base.EmailManager.connect(Unknown Source)
    at com.fr.base.EmailManager.send(Unknown Source)
    at com.fr.base.EmailManager.send(Unknown Source)
    ... 10 more

FineReport HHHHH123 发布于 2020-8-3 16:21 (编辑于 2020-8-4 08:38)
1min目标场景问卷 立即参与
回答问题
悬赏:3 F币 + 添加悬赏
提示:增加悬赏、完善问题、追问等操作,可使您的问题被置顶,并向所有关注者发送通知
共1回答
最佳回答
0
Kevin-sLv7中级互助
发布于2020-8-4 08:47

Could not connect to SMTP host: SMTP.163.com, port: 25, response: -1,大概率是FR服务器网络不稳定

  • 2关注人数
  • 785浏览人数
  • 最后回答于:2020-8-4 08:47
    请选择关闭问题的原因
    确定 取消
    返回顶部