Sending Email Body without applying CSS

table.html (2.3 KB)

When i am sending this table as mail, I am choose IsBodyHtml as True, Doing so i am receiving this table in mail, but with all formatting and colors removed, please help me with getting same output.

we could assume that the style definition is not injected to the html head and therefore the css rules are ignored
UPD1: was possible in some scenarios

let us know on how in detail is placed within the body and also give try by completing the snippet to a full html page with header and body
UPD1 - we would always try on enhanced RnD rounds

UPD1 - added adapted by part results from more RnD rounds on Outlook

  • see below
  • CanIMail check - especially for n-th rules
  • class vs element rules

Additional to above we also recommend ensure

  • when specifying a rule for an element (do not use . before element name)
  • when specifying a rule for a class
    Also keep in mind that some css rules are not supported by outlook / email clients

At least with some modifications we received:

1 Like

After some further RnD rounds we can also isolate the following trigger:

  • a massive effect also have full/part class name usage / application
    • full classname: like classname is: style="subaduba" - rule = .subaduba th = OK
    • partial class: style="subaduba stripes" - rule = .subaduba th = KO, not formatted

Hi ,
Yes Mail was not supporting all css format, I modified the style, and it worked now.

Thanks a lot man.

Perfect so the topic can be closed by
Forum FAQ - How to mark a post as a solution - News / Tutorials - UiPath Community Forum

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.