Convert MSG to Other Formats
Contents
[
Hide
]
Aspose.Email - Convert MSG to Other Formats
Conversion
Java
// Initialize and Load an existing MSG file by specifying the MessageFormat
MailMessage msg = MailMessage.load(dataDir + "message.msg");
// Save the Email message to disk by specifying the EML and MHT MailMessageSaveType
msg.save(dataDir + "AsposeMessage.eml");
msg.save(dataDir + "Asposemessage.mhtml");
Aspose.Email makes it easy to convert any message type to another format. To demonstrate this feature, different types of messages can be loaded from disk and saves them back in other formats. The base class SaveOptions and the classes EmlSaveOptions, MsgSaveOptions, MhtSaveOptions, HtmlSaveOptions for additional settings when saving MailMessage can be used for saving messages to other formats. The article shows how to use these classes to save a sample email as:
- EML format).
- Outlook MSG.
- MHTML format.
- HTML format. and also shows how to preserver original email address
- Preserve Original Email Address