We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

MHtmlFromat is obsolete: Please use MHtmlFormat instead

Help! This message wins an award.


Trying to recompile code with only change being
from Aspose.Email v2.6.0 (Feb 2013)
to Aspose.Email v3.2.0 (July 2013)

This line of code
Dim aMsg As Aspose.Email.Mail.MailMessage
aMsg.Save(viaStream, Aspose.Email.Mail.MailMessageSaveType.MHtmlFromat)

now produces
’Public Shared ReadOnly Property MHtmlFromat As Aspose.Email.Mail.MailMessageSaveType’ is obsolete: ‘Please use MHtmlFormat instead’.

I am considering
aMsg.Save(viaStream, Aspose.Email.Mail.MessageFormat.Mht)
as the alternative, but nowhere is MHT described as being MHTML format

nor could I find any other post or release note with a deprecation notice…


Hi Stan,


We are sorry for the inconvenience caused to you.

This method was marked as obsolete in Aspose.Email for .NET 3.0.0 due to its spelling mistake (MHTMLFromat instead of MHTMLFormat) as mentioned in release notes. Please use the correct version of the method call i.e. MailMessageSaveType.MhtmlFormat. Please let us know if we can be of any additional help to you.

Wow, I am blind - never saw the transposition error.

Thanks for the quick response!

Hi Stan,


Its good that you have been directed to the appropriate solution quickly and your issue is solved now. Please feel free to write to us in case you have any other query/inquiry related to Aspose.Email.