Browse our Products

Aspose.Email for .NET 20.9 Release Notes

All Changes

EMAILNET-39912MapiMessage RTF compressionFeature
EMAILNET-39914MailMessage.Date issue in Aspose.EmailBug
EMAILNET-39915Memory leak when invoking Print on MailPrinter (PrintFormat.Tiff)Bug
EMAILNET-39905Exception thrown after changing attachment content and savingBug
EMAILNET-39935HeaderCollection.SetHeaderObject duplicate existing header keyBug
EMAILNET-39907DisplayName is read as BlankBug
EMAILNET-39888Initialize logging properties while using EWS connectionBug
EMAILNET-39921QuotedPrintable trailing space/tab issueBug
EMAILNET-39924Wrong email body value reading body message propertyBug
EMAILNET-39926Take the value of “ClientSubmitTime” and paste it in “DeliveryTime” Automatically for many .msgBug
EMAILNET-39923Converting from MSG to MHTML takes to longBug
EMAILNET-39930Attachment name encoding issueBug
EMAILNET-39918PST GetContents is very slowBug
EMAILNET-39817Corrupt PST is generated on adding messageBug
EMAILNET-39922Issue using OAuth2 TokenBug

New features

RTF compression while setting MAPI message body

RTF compression allows to reduce the message size and the size of the created PST files. The following overloaded methods have been added:

MapiMessageItemBase.SetBodyContent(string content, BodyContentType contentType, bool compression)
MapiMessageItemBase.SetBodyRtf(string content, bool compression)

The last compression parameter specifies that the content should be compressed.

Code example

MapiMessage msg = new MapiMessage("", "", "subject", "body");
// set the html body and keep it compressed
// this will reduce the message size
msg.SetBodyContent(htmlBody, BodyContentType.Html, true);