Could not connect to SMTP host
843830Apr 18 2006 — edited Apr 19 2006I am getting the following error message when I try to send mail using java from a server. The same java code works fine from a workstation. How can I troubleshoot/figure out what is causing this error message. I know it is not the code and the workstation and server talks to the same mail server.
javax.mail.SendFailedException: Sending failed;
nested exception is:
javax.mail.MessagingException: Could not connect to SMTP host: 192.168.3.28, port: 25;
nested exception is:
java.net.SocketException: connect (code=10053)
at javax.mail.Transport.send0(Transport.java:219)
at javax.mail.Transport.send(Transport.java:81)
at com.daviescon.util.sendfile.<init>(sendfile.java:98)