I have a Java program which uses javax.mail to send an SMTP message. This program works fine on a Linux box, I want to emphasize that beforehand. When I try this same cod
I had the same problem during upgrade form java 1.6 to java 1.7.
The problem occured because java 1.7 using IPv6 by default.
To fix this, you need to add Java Option like on example below.