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

Free Support Forum - aspose.com

MailMessage lost spaces in HtmlBodyText

Hi

Since version Aspose.Email 22.12, property HtmlBodyText and also method GetHtmlBodyText of class MailMessage returns incorrect text.

  var message = new MailMessage() { HtmlBody = "<html><body>Text <b>text</b> Text</body></html>" };
  var messageText = message.GetHtmlBodyText(false)!;

  if (!messageText.Contains(@"Text text Text"))
    throw new Exception("Wrong HtmlBodyText: " + messageText);

In example disappears space after symbol “>”. Is it feature or bug?

Hello @directum,

It is a bug that appeared after fixing your issue with html table to text conversion. It seems that inline tags were missed. I will create a ticket to fix it. Thanks.

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): EMAILNET-40940

You can obtain Paid Support services if you need support on a priority basis, along with the direct access to our Paid Support management team.