aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes JavaMail :: Accessing Gmail using POP3, SSL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "JavaMail :: Accessing Gmail using POP3, SSL" Watch "JavaMail :: Accessing Gmail using POP3, SSL" New topic
Author

JavaMail :: Accessing Gmail using POP3, SSL

Ramaswamy Srinivasan
Ranch Hand

Joined: Aug 31, 2004
Posts: 295
Dear All,

I am trying to access my gmail, using the POP3 and SSL.
I am able to connect to the pop server of gmail. When I try to read the content from the Inbox folder, using the code snippet below



Here, both the getMessageCount() and getUnreadMessageCount() methods return a value of "-1".....not sure, as to what is going wrong.

I would really appreciate, if someone can help me out in this regard!!

P.S : I have also tried with folder.getNewMessageCount()...same result
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: JavaMail :: Accessing Gmail using POP3, SSL