By "email id", you mean the email address? If so, the objective is to connect to a mail server and retrieve all messages from a particular address? If so, then that's what the JavaMail API is for; see the JavaEnterpriseEditionFaq for much information about it. If you meant something else, please describe what that is in more detail.
posted 8 years ago
thanks for the reply....
I can able to read emails using javamail api. I have used pop3 to get the mails.
Every time iam getting all mails from my email account.
How to retrieve only new mails using pop3?
suggest me some alternative approaches in retrieving new mails
Abhishek Reddy wrote:How to retrieve only new mails using pop3?
I recognize this as one of the topics from the JavaMail FAQ. While you're looking that one up it wouldn't hurt to read through the whole document. You're quite likely to run into some of the other questions there.