Last active
February 16, 2021 01:38
-
-
Save aspose-com-gists/3588603072eedc144ef45b28741db2df to your computer and use it in GitHub Desktop.
MSG or EML Emails to HTML or MHTML in C#
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 email file | |
MailMessage mailMsg = MailMessage.Load("mail.eml"); | |
// Convert email to HTML | |
mailMsg.Save("email-to-html.html", SaveOptions.DefaultHtml); |
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 email file | |
MailMessage mailMsg = MailMessage.Load("mail.msg"); | |
// Convert email to MHTML | |
mailMsg.Save("email-to-html.html", SaveOptions.DefaultMhtml); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment