mails through proxy.
1 posts in topic
Flat View  Flat View

Posted By:   Shaan_Ali
Posted On:   Friday, December 7, 2001 11:50 PM


Can u tell me what the settings are required, if i want to access the mails through proxy. Without proxy my codes are working fine. but if i try to connect mail server through proxy it's showing me Error.
I am using

System.getProperties().put("proxySet", "true");

System.getProperties().put("http.proxyHost", "");

System.getProperties().put("http.proxyPort", "81");

with regards,


Re: mails through proxy.

Posted By:   Munish_Jauhar  
Posted On:   Saturday, December 8, 2001 02:17 AM

Hi Shaan

Well I am facing the same problem you have mentioned. I tried using the following code:

Properties prop = System.getProperties();

prop.put("http.proxyHost", "");

prop.put("http.proxyPort", "80");

Strangely my code worked for one day, but after that it stopped working. I then tried to use the following code:

Properties prop = System.getProperties();

prop.put("socksProxySet", "true");

prop.put("socksProxyHost", "");

prop.put("socksProxyPort", "1080");

However this did not help either. Why dont you try the second option and see if it works. If you get anything then please do let me know.


Munish Jauhar
About | Sitemap | Contact