HTML电子邮件的降价最大行长度?

时间:2014-12-15 23:42:51

标签: html email outlook

我收到了HTML电子邮件,其中包含内联样式和一些繁重的内容(强制Outlook查看透明png),这会导致行标记长度超过1000个字符。该文本远低于标准的80个字符。

我的html发件人服务不接受这一点 - 我收到关于行太长的警告,这可能会导致某些客户端出错。

我已经对这些电子邮件进行了彻底的测试,但我还没有看到HTML本身的呈现问题,但是进一步阅读和调查问题表明实际上有些服务器可能拒绝电子邮件消息长度,可能还有行缓冲区溢出。它还有效吗?我应该担心HTML电子邮件标记长度吗?毕竟,我们正处于2015年的边缘。

标记符合以下方式:

<img src="domain.com/gfx/logo_red.png" style="width: 257px; height: 79px; outline: none; text-decoration: none; -ms-interpolation-mode: bicubic; max-width: 100%; float: none; clear: none; display: inline; line-height: 0px; position: relative; behavior: expression((this.runtimeStyle.behavior='none')&amp;&amp;(this.pngSet?this.pngSet=true:(this.nodeName == 'IMG' &amp;&amp; this.src.toLowerCase().indexOf('.png')&gt;-1?(this.runtimeStyle.backgroundImage = 'none', this.runtimeStyle.filter = 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src='' + this.src + '', sizingMethod='image')', this.src = './gfx/spacer.gif'):(this.origBg = this.origBg? this.origBg :this.currentStyle.backgroundImage.toString().replace('url('domain.com/,).replace(')',''), this.runtimeStyle.filter = 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src='' + this.origBg + '', sizingMethod='crop')', this.runtimeStyle.backgroundImage = 'none')),this.pngSet=true)); margin: 0; padding: 0; border: none;" /></a>

1 个答案:

答案 0 :(得分:2)

我会说你可以忽略这个特别警告。您的发件人服务是偏执狂,因为它没有意识到您发送的是html电子邮件。它可能很旧,专为发送文本/普通电子邮件而设计。多年前,一些非常糟糕的电子邮件客户端会截断包含多行的网址。

但请确保您使用正确的mime类型 text / html 发送,或在多部分消息中使用html。由于宽度原因,服务器没有理由拒绝html电子邮件。

相关问题