Package email.extractor

Source Code of email.extractor.AsposeMsgHeaders

package email.extractor;

import com.aspose.email.MailMessage;
import com.aspose.email.MessageFormat;

public class AsposeMsgHeaders
{
  public static void main(String[] args)
  {
    MailMessage message = MailMessage.load("data/message.msg", MessageFormat.getMsg());

    //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());
  }
}
TOP

Related Classes of email.extractor.AsposeMsgHeaders

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.