1

I want to make a program which can read email (subject, sender, body message) in Yahoo & Google mail.

I originally thought to use POP3 but I read on the internet POP3 can't read the mail box.

Does anyone know of / can suggest a Java library for this problem?

Jack
  • 2,891
  • 11
  • 48
  • 65
Huuhaacece
  • 641
  • 1
  • 8
  • 10

3 Answers3

1

Peek here:

Getting mail from GMail into Java application using IMAP

Community
  • 1
  • 1
Amadan
  • 191,408
  • 23
  • 240
  • 301
1

Java itself provides Java Mail APIs to enable mail functionalities. You can also find third party APIs at here.

Venkat
  • 2,604
  • 6
  • 26
  • 36
0

GMail provides an ATOM feed of unread mail that uses HTTP Basic authentication:

http://mail.google.com/mail/feed/atom

LanguagesNamedAfterCofee
  • 5,782
  • 7
  • 45
  • 72
  • 1
    ATOM feed provides very limited function. Can only get the briefing of messages. If requirement is simple, can use feed/atom. But using IMAP via OAUTH (https://developers.google.com/google-apps/gmail/oauth_overview) can provide much more features. – kitokid Dec 19 '12 at 08:55