my dog learned polymorphism*
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


Win a copy of Spring in Action this week in the Spring forum!
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JavaMail :: Accessing Gmail using POP3, SSL