本地设计器设置邮箱后发送邮件OK,放到服务器上就不行了,有谁遇到过? 相同的配置没变过 邮件发送失败 com.fr.schedule.output.EmailException: javax.mail.MessagingException: Could not connect to SMTP host: SMTP.263.net, port: 25; nested exception is: java.net.ConnectException: Connection timed out: connect 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.dealWithFileActions(Unknown Source) at com.fr.fs.schedule.job.FormletJob.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.263.net, port: 25; nested exception is: java.net.ConnectException: Connection timed out: connect at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1961) 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 Caused by: java.net.ConnectException: Connection timed out: connect at java.net.DualStackPlainSocketImpl.connect0(Native Method) at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source) at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source) at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source) at java.net.AbstractPlainSocketImpl.connect(Unknown Source) at java.net.PlainSocketImpl.connect(Unknown Source) at java.net.SocksSocketImpl.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:321) at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:237) at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1927) ... 16 more |