• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

IO Exception :Connection timed out

 
varkala prabhakar
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hai,
I have a mail servlet and when i try to run that servlet i get this error:,kindly tell me how to correct the error.
thanx
prabhakar
code:

Added code UBB tags
-Mike C
[ January 07, 2002: Message edited by: Mike Curwen ]
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi varkala,

Could you provide a bit more detail in your stack trace? It's helpful to see the full stack trace when diagnosing a problem.

There are a few things I will comment on:

You seem to be accessing mail.yahoo.com on port 25. Does Yahoo provide smtp service on this port?

Is there a reason you're not using JavaMail API to send/receive emails? It hides some of the Sockets and Streams details, and is a bit easier to use.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic