SharePoint Designer Email HTML Format

When we create a SharePoint designer workflow with send email functionality. Email body format will not behave as expected most of the times.

Alignments will not work even though you set it to align 'top' or ‘bottom'

Solution :
The solution for that is very simple and interesting. You need to put your html code in a single line. i.e

<table>
<tr>
<td>row 1, cell 1</td>
<td>row 1, cell 2</td>
<td>row 1, cell 3</td>
</tr>
<tr>
<td>row 2, cell 1</td>
<td>row 2, cell 2</td>

<td>row 2, cell 3</td>
</tr>
</table>

This will cause alignment issue.

<table><tr><td>row 1, cell 1</td><td>row 1, cell 2</td><td>row 1, cell 3</td></tr><tr>td>row 2, cell 1</td><td>row 2, cell 2</td><td>row 2, cell 3</td></tr></table>

Above code will fix this alignment issue in Designer email format. Everything should be in one line.

Comments

Popular posts from this blog

Activating a SharePoint Feature on Multiple Sites or Site Collections using PowerShell

Managed Path with WildCard and Explicit Inclusion

List All SharePoint 2010 PowerShell Commands