Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Could not connect to SMTP host

843830Apr 18 2006 — edited Apr 19 2006
I 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)
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 17 2006
Added on Apr 18 2006
3 comments
250 views