Java EE and general Java platforms.
You'll read about Conferences, Java User Groups, Java EE, Integration, AS7, WildFly, EAP and other technologies.

Tuesday, July 14, 2009

Gmail4J - accessing Gmail services from Java

08:51 Tuesday, July 14, 2009 Posted by Markus Eisele
, , ,
Gmail4J is a simple, object oriented library for accessing Gmail services from Java. The actual build version 0.3 is available under a Apache License 2.0 from

You can use it with maven ( Repository):


Some example code? Get unread Messages from your account (through proxy):

GmailClient client = new RssGmailClient();
GmailConnection connection = new HttpGmailConnection(LoginDialog.getInstance().show("Enter Gmail Login"));
connection.setProxy("", 8080);
final List messages = client.getUnreadMessages();
for (GmailMessage message : messages) {

Looks like this: