This week's book giveaway is in the JDBC forum.
We're giving away four copies of Make it so: Java DB Connections & Transactions and have Marcho Behler on-line!
See this thread for details.
The moose likes Other JSE/JEE APIs and the fly likes Javamail and GMail Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Javamail and GMail" Watch "Javamail and GMail" New topic

Javamail and GMail

Ethan Gur

Joined: Feb 17, 2005
Posts: 12
Hi all

I was wondering whether anyone tried to use JAVAMail to connect to GMail accounts. I'm experiencing a major problem where the message can be retrieved only once, meaning - after the first time I get it - I can't get it again (code snippet soon).
I tried it with outlook express and thunderbird, and got similar results - the first client that connected got the message, but the second saw no message. However, when I logged in to my account via GMail's web client - I saw the message was still there.

This is a code snippet I'm using:

Does anyone know how to solve this problem?
I agree. Here's the link:
subject: Javamail and GMail
jQuery in Action, 3rd edition