Setting HTML body using SetBodyContent also set the RTF body

Hi,

I am using Aspose.Email.dll(File Version 3.5.0.0) to create the pst file.

I use the MapiMessage to set the properties and add to pst folder.
=============================================
MailMessage mail_msg = MailMessage.Load(emlpath);
MapiMessage mapi_msg = null;
mapi_msg = MapiMessage.FromMailMessage(mail_msg,OutlookMessageFormat.Unicode);

==================================================
But when I set the body using method
mapi_msg .BodyRtf = null;
mapi_msg.SetBodyContent(strBody, BodyContentType.Html);

It set the body to HTML and the BodyRtf also.
================================================
I am calculating the MD5 (Unique id)for the mail.
But when I save the mail from Aspose.Email.dll
it gives me RTF as well as HTML body for the mails having only the HTML body.
So My MD5 for the mail get differ even if the mail is same.


So my requirement is that
Aspose.Email.dll should set only the body specified not the others.

Kindly waiting for your reply.

Thanks in advance


Hi Pooja,


Thank you for contacting Aspose Support team.

I would like to share that RTF body is always there even if body type is set to html. The PR_RTF_COMPRESSED property contains the RTF version of the html body of message.

I am afraid to inform that its not possible to create message having html body type and having null RTF.