1

I have an email in html that should works in all platofrms, however I have an issue in Outlook 2016 that the content is not being displayed. My email has

<!--[if (gte mso 9)|(IE)]>...content...<![endif]-->
<![if !(gte mso 9)]>...content...<![endif]>

The email is opened correctly using OWA, gmail, etc., but when its opened in Outlook 2016 none of the conditions work so the email body is empty

Any advise?

Thanks, Uri

gwally
  • 3,349
  • 2
  • 14
  • 28

2 Answers2

0

This should solve your If Not Outlook issue:

<!--[if !mso]><!-- -->...content...<![endif]>

Instead of targeting two different Ifs, why not make one the else?

<!--[if (gte mso 9)|(IE)]>...exception...<![endif]-->
...content...

You can target Outlook in a variety of ways:

  • lt is less than a specific version.
  • gt is greater than a specific version.
  • lte is less than or equal to a specific version.
  • gte is greater than or equal to a specific version.

I'm not sure Outlook supports the logic of if not.

However, if you are doing something with content that is specific to, for example, Outlook 2016, try this:

<!--[if (lt mso 15)|(IE)]>...exception...<![endif]-->
<!--[if (gte mso 16)|(IE)]>...Specific Outlook 2016...<![endif]-->
...content...

This is the Microsoft numbering scheme for Outlook:

  • Outlook 2000 = 9
  • Outlook 2002 = 10
  • Outlook 2003 = 11
  • Outlook 2007 = 12
  • Outlook 2010 = 14
  • Outlook 2013 = 15
  • Outlook 2016 = 16

Good luck.

gwally
  • 3,349
  • 2
  • 14
  • 28
  • my issue is that from some reason the email body is empty when its being viewed using outlook 16 and it seems ok when being viewed in IE, OWA, any version of outlook (not including 16). The content is the same content, arranged in div or table depending on the rendering engine. What do you mean in exception? – Uri Margalit Dec 11 '17 at 22:17
  • @UriMargalit The If statement for Outlook is the exception to the normal HTML code we use for emails. You don't post your code so it's really hard to determine what you're doing to cause Outlook 2016 to not display content. However, you mention div, which isn't supported, which means you're doing something else that Outlook doesn't like, beyond the div and the If Not statement. – gwally Dec 11 '17 at 22:43
  • The issue was that Websense identifies the conditional if as a script and blocked it entirely. Once my customer exclude my emails in Websense they see my email correctly – Uri Margalit Dec 13 '17 at 11:43
0

Seems my email is correct.

The issue was that Websense identifies the conditional if as a script and blocked it entirely.

Once my customer exclude my emails in Websense they see my email correctly