Prevent Outlook from butchering HTML emails with MsoNormal?

I'm seeing a very frustrating issue with how Outlook 2013 is rendering a simple HTML-based table in an email. It is being totally re-written to have extra line breaks, styling, white space and superfluous code. Is there a way to prevent this, or a workaround method? Here is my test table code, about as simple as it gets:

<table>
<tr>
<td>Line 1</td>
</tr>
<tr>
<td>Line 2</td>
</tr>
</table>

On the receiving side, I look at the source code, and that table has been converted to this monstrosity:

<table class=MsoNormalTable border=0 cellpadding=0 style='mso-cellspacing:1.5pt; mso-yfti-tbllook:1184'>
<tr style='mso-yfti-irow:0;mso-yfti-firstrow:yes'>
<td style='padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal><o:p>&nbsp;</o:p></p>
<p class=MsoNormal><o:p>&nbsp;</o:p></p>
<p class=MsoNormal>Line 1</p>
<p class=MsoNormal><br>
<br style='mso-special-character:line-break'>
<![if !supportLineBreakNewLine]><br style='mso-special-character:line-break'>
<![endif]></p>
</td>
</tr>
<tr style='mso-yfti-irow:1;mso-yfti-lastrow:yes'>
<td style='padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal><o:p>&nbsp;</o:p></p>
<p class=MsoNormal>Line 2</p>
<p class=MsoNormal><br>
<br style='mso-special-character:line-break'>
<![if !supportLineBreakNewLine]><br style='mso-special-character:line-break'>
<![endif]></p>
</td>
</tr>
</table>

It looks absolutely terrible when displayed in the email. From my understanding this issue is created by how MS incorrectly renders HTML emails using the horrendous MS Word HTML back-end instead of using a real web renderer. This is for an automated alert email template for a task at my work, so changing mail providers is not an option, I am required to use MS Outlook and Exchange.


  • Edited by Beardsly 11 hours 38 minutes ago
June 2nd, 2015 1:59pm

Hi,

Since Outlook 2007, Outlook uses Microsoft Word to render emails. Some HTML and CSS features are not supported ideally so this should be the cause of your issue - Based on your description you have been aware that Outlook and Word don't render HTML as good as a web browser, this is true.

If you check the email on OWA, could it be displayed correctly? If yes this may be a workaround to show this kind of emails.

Regards,

Melon Chen
TechNet Community Su

Free Windows Admin Tool Kit Click here and download it now
June 3rd, 2015 3:09am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics