Free Support Forum - aspose.com

Outlook text colors are not preserved in converted message

27856.zip (46.3 KB)

HI,

When I use Aspose.Email to convert the attached msg to mht, most of the font colors are lost. In the screenshot below, left is the original message as shown in Outlook, right the converted message:

The problem is reproduced with basic msg conversion code:

    string sMsgPath = Path.GetFullPath("27856.msg");
    using (Aspose.Email.MailMessage msg = Aspose.Email.MailMessage.Load(sMsgPath))
    {
      string sMht = sMsgPath + ".mht";
      if (File.Exists(sMht)) File.Delete(sMht);
      msg.Save(sMht);
    }

I tried playing around with load and save options, without any positive result.

@gertjaap,

After reproducing the issue on my end using Aspose.Email for .NET 20.6, I have logged a ticket with ID EMAILNET-39874 in our issue tracking system to further investigate and resolve it. We will share good news with you as soon as it will be fixed.

The issues you have found earlier (filed as EMAILNET-39874) have been fixed in this update.

Hi,

The reported issue is solved, but there is a new issue in version 20.7: forwarded message headers below a set of colored text lines now take one of the colors of the set. They should be black (default color).

See this screenshot (left is Outlook, right mht output of Aspose.Email 20.7):
27856-Aspose.Email.20.7.png (38.7 KB)

@gertjaap,

Can you please provide the source MSG file along with generated MHT file. Please also share the used sample code too so that I may log issue in our issue tracking system.