• Post Reply Bookmark Topic Watch Topic
  • New Topic

connect to an IMAP server

 
ashok khandelwal
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
dear friends
i am trying the demo of JavaMailServlet that is provided with
javamail-1.2 package.this is to connect to a IMAP server.
i gave the IMAP servar name as :202.54.30.2 (our ISP)
& valid username,password.it gives the exception like
javax.mail.MessagingException: Connection refused; nested exception is: java.net.ConnectException: Connection refused
can i use other IMAP server.ie i have account in hotmail,rediffmail,yahoo
can i use these as IMAP server
thank in advance
it's urgent
thanks
ashok
email:ashokkhandelwal@epatra.com
 
gautham kasinath
Ranch Hand
Posts: 583
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
Well check if you have the Imap service running.. coz I got the same exception wen testing my code.. n I found that de server wasnt runing the service den.. after I got de service running the exception disappeared n de code worked well..
Regds
Gautham Kasinath
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!