Help coderanch get a
new server
by contributing to the fundraiser
  • 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

how to access INBOX folder in Microsoft Outlook from JavaMail

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am developing a JavaMail application for web. I tried to access my INBOX in Microsoft exchange server from my application but I am getting an exception
javax.mail.MessagingException: no further information (code=10051); nested exception is: java.net.SocketException: no further information (code=10051)
I used the following code to access the folder:
Session store_session = Session.getInstance(
System.getProperties(), null);
Store store = store_session.getStore("imap");
store.connect(host, username, password);
Folder publicFolder = store.getFolder("INBOX");
Folder[] folders = publicFolder.list("*");

What could be the problem and pls give me a solution.
Thanks,
Boopathy
 
Saloon Keeper
Posts: 27933
198
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sun's not big into numeric error codes, so I'd check the Microsoft SDK docs and see what Windows Error Code 10051 might mean.
 
mooooooo ..... tiny ad ....
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic