posted 18 years ago
I am using javamail and behind a proxy.
The mail server, the proxy and the application all three are on same LAN.
If I use outlook to talk to my mail server, it works fine... however with javamail, the following sample code throws exception...
nested exception is:
javax.mail.MessagingException: Could not connect to SMTP host: <some ip here>, port: 25;
nested exception is:
java.net.SocketException: Software caused connection abort: connect
at javax.mail.Transport.send0(Transport.java:219)
at javax.mail.Transport.send(Transport.java:81)
at SendApp.send(SendApp.java:28)
at SendApp.main(SendApp.java:33)