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!

sending java e-mail thru proxy or socks server

843830Apr 4 2002 — edited Apr 10 2005
Hi, I'm trying to send an e-mail using JavaMail API.
I could not connect to the SMTP server because it's outside my intranet and I reach access on internet thru a proxy or socks server.
In java.net API I can set this properties to get access thru a proxy or socks
Properties props = new Properties();
//for socks server
props.put("socksProxyHost","your-socks-server");
props.put("socksProxyPort","port-number");
// for proxy server
props.put("http.proxyHost","your-proxy-server");
props.put("http.proxyPort","port-number")

But Java Mail seems not to support this properties, is there any way to socksify Java Mail?

Thanks in advance
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 8 2005
Added on Apr 4 2002
1 comment
460 views