Apache POI - HSMF

String filename = "message.msg";
MAPIMessage msg = new MAPIMessage(filename);

Aspose.Email

//Create MailMessage instance by loading an Eml/Msg/Emlx/Mht file
MailMessage messageMSG 	= MailMessage.load("message.msg", MessageFormat.getMsg());
MailMessage messageEML 	= MailMessage.load("message.eml", MessageFormat.getEml());
MailMessage messageEMLX = MailMessage.load("message.emlx", MessageFormat.getEmlx());
MailMessage messageMHT 	= MailMessage.load("message.mht", MessageFormat.getMht());


Download Source Code

For More Examples, Please Visit Aspose Docs

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