File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of Android Security Essentials Live Lessons this week in the Android 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
 
 
subject: JavaMail :: Accessing Gmail using POP3, SSL
 
Similar Threads
Matching mail message with UUID
Reading email messages
Unable to get the list of folders in hotmail using JavaMail
How to retrieve mails from POP 3 server
Reading Java Mail