Office 365 send email HTML body

Thanks in advance,

I’ve been using Office 365 Scope for the past two years. The send email activity has been WORK accurate .But from past two days, the HTML table is not reflecting the style, borders, and alignments exactly, causing errors. How can I fix the problem?

image

Hi @Zishan_Sk

Have you tried by updating the Packages to the highest version by making runtime rule as lowest as applicable.

1 Like

@Zishan_Sk,

If your email body have some dynamic values check they are not breaking the HTML Tags. Try logging the raw HTML before sending in the email body.

If it was working and nothing upgraded then your HTML string would be the cause of the issue.

Thanks,
Ashok :slight_smile:

What is your robot version?
What is the O365 package version?
In the Send Email activity did you select Is Body HTML?
Did you try to provide another sample HTML code for table?

This can be a setting on your email client, some companies scrub all html from an email.
If you didnt change your code then this could be the reason.

1 Like

Dear, i tried with that. Issue is same.

@Zishan_Sk,

Ok, try others solutions as well. good luck :v:

1 Like

No. I have copied that HTML content and checked it is perfect as below.
image

@Zishan_Sk,

Is this your full html body of the email? or do you have greetings and signature also apart from this table?

If yes, try creating a html file with full body html and check if it’s rendering correctly.

Thanks,
Ashok :slight_smile:

Exactly. let me know to whom I redirect. is the team who provide me App and Tenant ID?

Please check, below
HtmlContent.txt (1.0 KB)

Robot version is 23.4.2
package is 2.6.24
Yes i Checked is body HTML.
Yes i have removed Prod HTML that contains data a lot. provided sample html table that is also not reflecting Accurately email is considering it as Html because tags are hidden but why the borders and headers likely style and size are missing.

@Zishan_Sk,

This looks fine still just try his html string once if it’s rendering correctly or not.

<html>
<head>
<style>
table {
  font-family: arial, sans-serif;
  border-collapse: collapse;
  width: 100%;
}
td, th {
  border: 1px solid #dddddd;
  text-align: left;
  padding: 8px;
}
tr:nth-child(even) {
  background-color: #dddddd;
}
</style>
</head>
<body>
<h2>HTML Table</h2>
<table>
  <tr>
    <th>Company</th>
    <th>Contact</th>
    <th>Country</th>
  </tr>
  <tr>
    <td>Alfreds Futterkiste</td>
    <td>Maria Anders</td>
    <td>Germany</td>
  </tr>
  <tr>
    <td>Centro comercial Moctezuma</td>
    <td>Francisco Chang</td>
    <td>Mexico</td>
  </tr>
  <tr>
    <td>Ernst Handel</td>
    <td>Roland Mendel</td>
    <td>Austria</td>
  </tr>
  <tr>
    <td>Island Trading</td>
    <td>Helen Bennett</td>
    <td>UK</td>
  </tr>
  <tr>
    <td>Laughing Bacchus Winecellars</td>
    <td>Yoshi Tannamuri</td>
    <td>Canada</td>
  </tr>
  <tr>
    <td>Magazzini Alimentari Riuniti</td>
    <td>Giovanni Rovelli</td>
    <td>Italy</td>
  </tr>
</table>
</body>
</html>

Thanks,
Ashok :slight_smile:

I have no idea, that depends on your organization.
If its as I suspect then it also won’t matter if its made by a robot or not or what the connection is, so app ID etc is irrelevant.

Try upgrading the robot to 23.10.7 or 24.10.1.

Or downgrade the O365 package to the version that worked.

1 Like

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