Sending Email through http Proxy.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Kamrul_Hasan
Posted On:   Friday, July 16, 2004 10:12 PM

Basically I use dialup Internet Connection. and i was able to send email through that connection. But i was not enable to send email when i was attempting to run that code in a machine that has internet connection through http proxy. Can you tell me why it is happening. and what is the solution to the problem ?? The error Meesage is javax.mail.SendFailedException: Sending Failed. nested Exception is: class javax.mail.MessengingException: Unknown SMTP host: smtp.mail.yahoo.com nested Exception is: java.net.UnknownHostException: smtp.mail.yahoo.com    More>>

Basically I use dialup Internet Connection. and i was able to send email through that connection. But i was not enable to send email when i was attempting to run that code in a machine that has internet connection through http proxy. Can you tell me why it is happening. and what is the solution to the problem ??

The error Meesage is

javax.mail.SendFailedException: Sending Failed.

nested Exception is:
class javax.mail.MessengingException: Unknown SMTP host: smtp.mail.yahoo.com

nested Exception is:
java.net.UnknownHostException: smtp.mail.yahoo.com

   <<Less

Re: Sending Email through http Proxy.

Posted By:   Christopher_Koenigsberg  
Posted On:   Saturday, July 17, 2004 01:30 PM

java.net.UnknownHostException: smtp.mail.yahoo.com


I think that means that on the machine where it occurred, the resolver could not find an IP address or MX record, for that hostname.


So something either is funny with the DNS server used by that machine inside that firewall, or the machine uses a hosts file which is screwed up. Or maybe it was a temporary problem?


I think, usually behind a firewall, the DNS will resolve hostnames like that, but you'll get an error like connection timed out, host unreachable etc., not an unknown host.

About | Sitemap | Contact