Convert Email Messages to MHTML, MSG & EML Using Aspose.Email Java API
Joined: Mar 10, 2010
Aspose.Email API has made it very easy to convert an email message type to other formats. To demonstrate the simplicity of this feature, we will load 3 different types of messages from the disk and save them back in other formats using Aspose.Email Java API.
Steps to convert an existing Email Message to different formats
Please perform the following sequence of steps for modifying an existing Email Message:
- Create an instance of MailMessage class.
- Load the existing Email Message using the load() method exposed by MailMessage class and by specifying the correct MessageFormat.
- Save the Message to disk by using the save() method exposed by MailMessage class and by specifying the correct MailMessageSaveType.
Aspose.Email for Java is a Non-Graphical Java component that enables Java applications to read and write MS Outlook MSG files from within a Java application without using MS Outlook. It enables developers to create new MSG file from scratch, update an existing MSG file, read Outlook MSG file & get its properties like subject, body, recipients in to, cc and bcc, adding or removing attachment, sender information & MAPI properties. Aspose.Email can be used with Web as well as Desktop Application.