当前页面: 开发资料首页 → J2EE 专题 → 快来帮帮忙,在WINDOWS中能发MAIL,到LINUX下就不理我了.
快来帮帮忙,在WINDOWS中能发MAIL,到LINUX下就不理我了.
摘要: 快来帮帮忙,在WINDOWS中能发MAIL,到LINUX下就不理我了.
我在WINDOWS中能发MAIL,到LINUX下就不理我了.错误信息如下:
javax.mail.MessagingException: Unknown SMTP host: 210.51.0.223 ;
nested exception is:
java.net.UnknownHostException: 210.51.0.223
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1280)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370)
at javax.mail.Service.connect(Service.java:275)
at javax.mail.Service.connect(Service.java:156)
at javax.mail.Service.connect(Service.java:105)
at javax.mail.Transport.send0(Transport.java:168)
at javax.mail.Transport.send(Transport.java:98)
at com.ks.share.util.SendMail.sendMail(SendMail.java:117)
at com.ks.share.util.SendMail.run(SendMail.java:125)
at java.lang.Thread.run(Thread.java:534)
Caused by: java.net.UnknownHostException: 210.51.0.223
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:153)
at java.net.Socket.connect(Socket.java:452)
at java.net.Socket.connect(Socket.java:402)
at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:232)
at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:189)
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1250)
... 9 more
不知道是什么原因,郁闷......
我也遇到了这样的问题,不知该如何解决,关注中。。。。。。