aspose file tools
The moose likes Sockets and Internet Protocols and the fly likes JavaMail thru proxy server Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Reply Bookmark "JavaMail thru proxy server" Watch "JavaMail thru proxy server" New topic
Author

JavaMail thru proxy server

Tiger Scott
Ranch Hand

Joined: Mar 01, 2001
Posts: 223
How do I send mail via (from behind) a proxy server. I could not find any method to set the proxy server settings.
TIA
Sanjay
Joel Peach
Greenhorn

Joined: Oct 12, 2001
Posts: 19
Sanjay,
I didn't find anything in the JavaMail spec about mailing from behind a proxy. I.e., I don't believe there's native support for mailing through a proxy, but you might be able to do it with some of the Transport/Message implementations.
In my experience with proxy software (Wingate), in order to make use of the software, you had to specify the email host in a special way (I think it was delimited with a # sign). I haven't tried, but that may work with JavaMail.
This same question was posted to jGuru, but the reply wasn't particularly helpful:
http://www.jguru.com/faq/view.jsp?EID=21068
Best of Luck!
-Joel
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: JavaMail thru proxy server
 
Similar Threads
Download file from FTP using java client
Configuring tomcat as proxy server
Not able to open links from JEditorPane
Login problem in administrative tool
Http proxy