JavaMail connecting SMTP server through proxy
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   prashant_kharade
Posted On:   Thursday, October 18, 2001 03:09 AM

I'm trying to connect SMTP server through proxy but I'm getting Following error: Error in send Mail : Sending failed; nested exception is: javax.mail.MessagingException: Could not connect to SMTP host: 192.9.200 .5, port: 25; nested exception is: java.net.ConnectException: Connection refused: no further information I've tried following Properties properties = System.getProperties(); properties.put("http.proxyHost", sSmtpHost); //proxy on the same machine as host properties.put("http.proxyPort", "80"); properties.put("proxySet", "true");    More>>

I'm trying to connect SMTP server through proxy but I'm getting
Following error:


Error in send Mail : Sending failed;
nested exception is:
javax.mail.MessagingException: Could not connect to SMTP host: 192.9.200
.5, port: 25;


nested exception is:
java.net.ConnectException: Connection refused: no further information



I've tried following

Properties properties = System.getProperties();


properties.put("http.proxyHost", sSmtpHost); //proxy on the same machine as host
properties.put("http.proxyPort", "80");
properties.put("proxySet", "true");
properties.put("mail.smtp.host", sSmtpHost);

It's working fine without proxy.

   <<Less
About | Sitemap | Contact