邮件发送失败 com.fr.schedule.output.EmailException: javax.mail.MessagingException: Could not connect to SMTP host: SMTP.yonghui.cn, port: 25; nested exception is: java.net.ConnectException: 拒绝连接 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: Could not connect to SMTP host: SMTP.yonghui.cn, port: 25; nested exception is: java.net.ConnectException: 拒绝连接 at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1391) at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:412) at javax.mail.Service.connect(Service.java:288) at javax.mail.Service.connect(Service.java:169) at com.fr.base.EmailManager.connect(Unknown Source) at com.fr.base.EmailManager.send(Unknown Source) at com.fr.base.EmailManager.send(Unknown Source) ... 9 more Caused by: java.net.ConnectException: 拒绝连接 at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:579) at java.net.Socket.connect(Socket.java:528) at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:233) at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:189) at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1359) ... 15 more |
最佳回答 |
||||
0
|
|
|||
0
|
|
|||
0
|
|
|||
0
|
|
|||
0
|
|
|||
0
|
|
|||
0
|
|