Send E-Mail using JavaMail from behind a proxy server

If you trying to send an email using JavaMail API from behind a proxy server you would get ‘UnknownHostException’ . Thats because the proxy server doesn’t allow SMTP traffic through it.

One of my friend Indika Tantrigoda suggested me a forum thread that contains a good solution for this.

So this is the forum link

http://forums.sun.com/thread.jspa?threadID=615715

I think you may find a better answer…

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s