Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem with JMail  RSS feed

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
Boost this thread!