dcsimg
NoRouteToHostException
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Rekha_Andrews
Posted On:   Thursday, July 4, 2002 05:30 AM


used smtp server is smtp.mail.yahoo.com

java.net.NoRouteToHostException: Operation timed

out

at java.lang.Throwable. (Compiled Code)

at javax.mail.Transport.send0(Compiled Code)

at Mail.postMail(Compiled Code)

at Mail.main(Mail.java:14)

Re: NoRouteToHostException

Posted By:   Gautam_Marwaha  
Posted On:   Thursday, July 4, 2002 05:43 AM

Using a public domain SMTP server isn't legal unless you are authorized to use it. In this case you will be prompted for authentication.

NoRouteToHostException may be because your machine may be behind a firewall.

Use a SMTP server within your network and test things out. Verify SMTP service is running. One way to do this is to telnet to that machine. Usually port 25 is for SMTP. Run the following commands:



mail from: someone@lostworld.com
rcpt to: you@yourcompany.com
data
some junk
.


You shd get an email as soon as your SMTP server can push it out from the queue. If you do get an email, you're all set to run your javamail program using this SMTP server.
About | Sitemap | Contact