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!

Hello, javax.mail.MessagingException: Unknown SMTP host:

843830Nov 22 2004 — edited Nov 23 2004
Hello,

I am trying to send a mail and use a smtp Server which is located on the internet. I am however behind a firewall and am getting the following exception being thrown:

javax.mail.MessagingException: Unknown SMTP host:

This implies that I need to provide some settings for my proxy server. I though to solve this problem I could do the following:


System.getProperties().put("proxySet", "true");
System.getProperties().put("http.proxyHost", proxyHost);
System.getProperties().put("http.proxyPort", proxyport);


This however does not solve me problem as I still get the above exception. Could someone please give help me. Any suggestions,solutions or ideas as to what the problem might be would be appreciated.

Thanks much,
Alex.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 21 2004
Added on Nov 22 2004
4 comments
659 views