Quantcast
Channel: Aspose.Email Product Family
Viewing all articles
Browse latest Browse all 1367

Error when saving email file

$
0
0
Following code always throws an exception:

                MailMessage document = MailMessage.Load(originalStream);
                document.Save(targetStream, new EmlSaveOptions(MailMessageSaveType.MHtmlFormat));

Exception message is: "The specified saveType has incorrect save format." Saving only works with MailMessageSaveType.EmlFormat. I'm using 5.0 version of Aspose.Email.

Edit: never mind, I see I should have used MhtSaveOptions class instead. You can close this ticket.

Viewing all articles
Browse latest Browse all 1367

Latest Images

Trending Articles



Latest Images