V
V
vadim0232016-02-11 17:33:28
css
vadim023, 2016-02-11 17:33:28

How to fix conditional comments in outlook going down?

Now I'm looking for a way to display letters normally for both outlook and other browsers.
Fully imposition with pictures does not fit, and if you do it normally , then outlook rejects it.
And so I got the idea to combine both options through a conditional comment in html
Attempt # 1

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Transitional//EN"
  "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  <title>Test MSO</title>
</head>
<body>
<!--[if mso]>
mso
<![endif]-->
<!--[if !IE]><!-->
!mso
<!--<![endif]-->
</body>
</html>

Output two options in Outlook

Attempt #2
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Transitional//EN"
  "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  <title>Test MSO</title>
</head>
<body>

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

<!--[if !mso]><div style="display:none;"><![endif]-->
!mso
<!--[if mso]></div><![endif]-->
</body>
</html>

Again output two options in Outlook...

I decided to check what the code looks like in outlook`e , but I realized that outlook bugs it in a very strange way ...
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    !mso
    <title>Test MSO</title>
    <!--[if mso]>
mso
<![endif]--><!--[if mso]><div style="display:none;"><![endif]--><!--[if mso]></div><![endif]-->
  </body>
</html>

How can this be fixed? I've already run out of ideas...
Sending emails from Thunderbird to Outlook 10

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question