什么是 MSO? [电子邮件模板 Outlook HTML]

What is MSO? [Email Template Outlook HTML]

谁能告诉我什么是MSO?。我的意思是,现在我正在研究电子邮件模板 HTML,我在 Gmail 上做了它,它工作正常,但当涉及到 outlook 时,它变得很奇怪。尤其是图像部分和大小,一切都乱七八糟。

我在这里和那里阅读了一些博客或文章或网站,但似乎他们使用 MSO 对其进行编码以修复 outlook 输出电子邮件模板。这样对吗?为什么要用MSO来配置,具体怎么用,具体有什么用?

这部分我不太确定,但如果你能向我解释一下 HTML.

中代码的 outlook 部分,那将很有帮助

Here is 1 example I read on the website but not too sure about it.

https://jasemiller.medium.com/a-fix-for-outlook-image-issues-in-html-email-campaigns-b8dd1c8f7d16

为什么 Gmail 比 Outlook 更容易获取电子邮件模板的输出 HTML?

MSO 是 Microsoft Office 的缩写。在电子邮件世界中,它通常指以下之一:

  1. 条件注释。使用 Microsoft 为 Internet Explorer(支持 IE 9)创建的特殊语法,然后在 Microsoft Outlook 2007 及更高版本中使用,您可以创建仅在目标版本的 Outlook 中可用的代码。例如,在您提到的博客 post 中,他们使用 <!--[if mso]><![endif]--> 条件注释来创建仅适用于 Outlook 的 table 结构。你可以 read Microsoft’s documentation about conditional comments.
  2. mso 特定样式属性。这些是 Microsoft 创建的 CSS 属性,仅受 Word 的呈现引擎支持。它们带有 mso- 前缀。它们可以是众所周知的 CSS 属性的变体(例如 mso-border-alt 是 CSS 中 border 的别名)或完全是 Word 独有的东西(例如 mso-hide).这里是 a list of all styles supported by Outlook including mso- properties.

Gmail 可能比 Outlook 更好地呈现您的电子邮件的原因是 Windows(从 2007 年到 2019 年)上的 Outlook 使用 Word 的呈现引擎。而且 Word 不太擅长呈现 HTML 和 CSS。 (在 Can I email’s scoreboard, Outlook is ranked last why Gmail is currently ranked 22nd.) I wrote a detailed article last year to help make sense of Outlook’s rendering engine 中,我认为它可以帮助你。