Bot is sending the email with the HTML body why and any solutions to resolve the issue?

Hi UiPath family,

In my automation we are facing one issue, while sending the mail bot is sending the data in HTML format but I have enabled the “isHTMLBody” in the property panel also. I need to know why the body of the email still in the Html format and how to resolve this issue.

Please help me to resolve the issue this will help in out automation.

Regards,
Vishnuvardan G.

@vishnu_vardan,

Here are few possible reasons.

  1. Ensure that the HTML content is correctly formatted. Any syntax errors in the HTML might cause it to be rendered as plain text.
  2. Double-check that the IsBodyHtml property is indeed set to True.
  3. Sometimes, encoding issues might cause HTML to be displayed incorrectly. Ensure that your HTML content is properly encoded.
    If your HTML content includes special characters, ensure they are properly encoded. For example, use & instead of &, < instead of <, and so on.

Thanks,
Ashok :slight_smile:

@vishnu_vardan,

Try this solution as well.

Thanks,
Ashok :slight_smile:

Hi @ashokkarale ,

I have tried to run in debug mode it is giving as expected, But when it ran from orchestrator we have received as the data in the HTML body.

I have validated the HTML data with other platforms but it is showing correct only.

Please suggest me any other may cause this error.

Regards,
Vishnuvardan G.

@vishnu_vardan,

Is your html body dynamic? if yes, try to log the html text on PROD. Check any inconsistency in that html code.

Thanks,
Ashok :slight_smile:

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