I am programmatically creating Appointments through Exchange Web Services. I am setting the body of the appointment as:
appointment.Body = new MessageBody(BodyType.HTML, body);
with the body html having the following structure:
<html>
<body>
<table>
<tbody>
<tr>
<td>cell 1</td>
<td>cell 2</td>
<td>cell 3</td>
</tr>
</tbody>
</table>
</body>
</html>
When adding a border to this table, It will usually show correctly when the appointment is viewed from Outlook Web Access, but will show a table without styling when viewed from the Outlook 2013 desktop client.
I have tried the following approaches:
- Border property on the table element
- Applying a border using css
- Applying a border using css while collapsing borders
- Applying a border by setting the background of the table and individual cells while adding cellspacing
- Applying a border by setting the background of the individual cells, a span element within each cell, and applying padding to the cell.
Is it possible to programmatically add a table with borders to the body of an exchange appointment?