Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with JMail

Vishal Methi
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Everybody,
I want to read a mail from outlook express ... and i m getting this error..
"Mail Error::javax.mail.NoSuchProviderException: No provider for imap"

I installed one mail server.... attached is the code where i m getting this error in line no 6.

1. props.put("mail.smtp.port", "26");
2.props.put("mail.pop3.port", "111");
3.props.put("com.sun.mail.imap", "");
4.Session session = Session.getDefaultInstance(props, null);
6.Store store = session.getStore("imap");"", "joseph", "joseph");

Plz anyone here who can help me.... vishal u r doing this instead of this... actual code is this .....
plz anyone help me by giving the code to read a mail.....
Its my deadline period... so plz help me asap....

Thanx a lot for ur co-opeartion
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic