• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem with JMail

 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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", "192.158.105.001");
4.Session session = Session.getDefaultInstance(props, null);
5.try{
6.Store store = session.getStore("imap");
7.store.connect("192.158.105.001", "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
Vishal
 
Your buns are mine! But you can have this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic