Last active
June 29, 2021 06:44
-
-
Save aspose-com-gists/cd40b60f91f72f0c65ab49f479e61884 to your computer and use it in GitHub Desktop.
Convert Email to HTML in Java | https://blog.aspose.com/2021/04/05/convert-emails-to-html-in-java/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Load the EML/EMLX file to be converted | |
MailMessage message = MailMessage.load("email.eml"); | |
// Save EML as HTML | |
message.save("Saved File.html", SaveOptions.getDefaultHtml()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Load the MSG file to be converted | |
MailMessage message = MailMessage.load("email.msg"); | |
// Save MSG as a HTML | |
message.save("Saved File.html", SaveOptions.getDefaultHtml()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment