Apache POI - HSMF

MAPIMessage msg = new MAPIMessage("data/message.msg");

System.out.println("From: " + msg.getDisplayFrom());
System.out.println("To: " + msg.getDisplayTo());
System.out.println("CC: " + msg.getDisplayCC());
System.out.println("BCC: " + msg.getDisplayBCC());
System.out.println("Subject: " + msg.getSubject());

Aspose.Email

//Gets Email Headers
System.out.println("From: " 	+ message.getFrom());
System.out.println("To: " 	+ message.getTo());
System.out.println("CC: " 	+ message.getCC());
System.out.println("Bcc: " 	+ message.getBcc());
System.out.println("Subject: " 	+ message.getSubject());

Download Source Code

For More Examples, Please Visit Aspose Docs

Last edited Jun 20, 2014 at 6:15 AM by shoaibkhan, version 1