jQuery in Action, 2nd edition
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
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Reply 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
 
Similar Threads
Matching mail message with UUID
Reading Java Mail
Reading email messages
Unable to get the list of folders in hotmail using JavaMail
How to retrieve mails from POP 3 server