在主要的电子邮件客户端软件中,数据URI支持是什么?

时间:2022-07-15 22:22:12

Data URIs are a standard way to embed images and other binary data in HTML, and browser support is well documented on the web. (IE8 was the first version of IE to support Data URI, with a max 32 KB size per URI; other major browsers have supported it even longer.)

数据uri是在HTML中嵌入图像和其他二进制数据的标准方法,web上对浏览器的支持有很好的文档说明。(IE8是第一个支持数据URI的IE版本,每个URI的大小最多为32 KB;其他主要浏览器甚至支持它更久。

My question is about desktop email and webmail client software.

我的问题是关于桌面电子邮件和webmail客户端软件。

When building HTML email, standard practice is either to include images as attachments or load them externally (i.e. tracking images). Both of these have disadvantages (some clients list all of these attached files, while many rightly block or require user action to see external images). So, Data URI looks like a good way to go, but only if it's supported by email readers.

在构建HTML电子邮件时,标准做法是要么将图像包含为附件,要么将其加载到外部(即跟踪图像)。这两种方法都有缺点(有些客户端列出了所有这些附加文件,而许多客户端正确地阻塞或要求用户操作以查看外部映像)。因此,数据URI看起来是一个不错的方法,但前提是它是由电子邮件阅读器支持的。

So, does anyone have a link to a recent study of support for this feature? Or investigated this at all? For example, here's an overview of CSS support. Client software I'd be interested includes:

那么,有没有人知道最近一项关于支持这一功能的研究?或者调查过这个?例如,这里是CSS支持的概述。我感兴趣的客户端软件包括:

Desktop (including version info): Outlook, Apple Mail, Thunderbird, Evolution, Lotus Notes, AOL, Eudora

桌面(包括版本信息):Outlook, Apple Mail, Thunderbird, Evolution, Lotus Notes, AOL, Eudora。

Webmail: Gmail, Live/Hotmail, Yahoo! Mail, AOL

邮箱:Gmail、生活/ Hotmail,Yahoo !邮件,美国在线(AOL)

Mobile: Android, iPhone

手机:Android、iPhone

4 个解决方案

#1


90  

I've done a more recent test at Litmus, with data URIs for inline <img> elements and css background images.

我最近在Litmus上做了一个测试,使用内联在主要的电子邮件客户端软件中,数据URI支持是什么?元素和css背景图像的数据uri。

These desktop clients do show data URIs:

这些桌面客户端确实显示了数据uri:

  • Apple Mail 5
  • Apple Mail 5
  • Apple Mail 6
  • Apple Mail 6
  • Lotus Notes 8
  • Lotus Notes 8
  • Outlook 2003
  • 展望2003年
  • Thunderbird 3.0
  • 雷鸟3.0
  • Thunderbird latest
  • 雷鸟最新

These mobile clients do show data URIs:

这些移动客户端确实显示了数据uri:

  • Android 2.3
  • Android 2.3
  • Android 4.0
  • Android 4.0
  • BlackBerry 5 OS
  • 黑莓5操作系统
  • iPad
  • iPad
  • iPhone 3GS
  • iPhone 3 gs
  • iPhone 4S
  • iPhone 4 s
  • iPhone 5
  • iPhone 5

None of the webmail clients showed data URIs.

没有一个webmail客户端显示数据uri。

These desktop clients don't:

这些桌面客户端不:

  • Lotus Notes 6.5
  • Lotus Notes 6.5
  • Lotus Notes 7
  • Lotus Notes 7
  • Lotus Notes 8.5
  • Lotus Notes 8.5
  • Outlook 2000
  • 展望2000年
  • Outlook 2002/XP
  • 展望2002 / XP
  • Outlook 2007
  • 展望2007年
  • Outlook 2010
  • 展望2010年
  • Outlook 2011
  • 展望2011年
  • Outlook 2013
  • 展望2013年

These mobile clients don't:

这些移动客户不:

  • Gmail (Android)
  • Gmail(Android)
  • Outlook.com (Android)
  • Outlook.com(Android)
  • Yahoo (Android)
  • 雅虎(Android)
  • BlackBerry 4 OS
  • 黑莓4操作系统
  • Symbian
  • 塞班
  • Windows Phone 7.5
  • Windows Phone 7.5

#2


8  

I just tested GMail, and it appears that GMail no longer supports data URIs.

我刚刚测试了GMail,看来GMail不再支持数据uri。

In addition, gmx.de (a very popular German web mail provider) converts image URIs to a URI on its server, and this doesn't seem to support data URIs.

此外,gmx.de(一个非常流行的德国web邮件提供程序)将图像URI转换为服务器上的URI,这似乎不支持数据URI。

#3


6  

Mac Mail, Outlook 2003 and MobileMe support data URIs. Not sure about the other clients, but you can easily find out — create a new message in Gmail, click 'insert image', then click 'use a URL' and paste in the data URI. Then, send it to a number of addresses and open it in the clients you want.

Mac Mail, Outlook 2003和MobileMe支持数据uri。不确定其他客户端,但是您可以很容易地找到——在Gmail中创建一个新消息,单击“插入图像”,然后单击“使用URL”并将数据URI粘贴进来。然后,将它发送到多个地址,并在您想要的客户端中打开它。

#4


3  

I can't answer the question about the support for data-uri directly but support for anything like this is often very bad in email browsers. The issue really spans from many of them using their own cut down rendering engines that aren't full html renderers. In a system that it's still preferable to use a table based design to make sure emails are readable I wouldn't try to do anything clever.

我无法直接回答关于数据uri支持的问题,但在电子邮件浏览器中,对此类支持通常非常糟糕。这个问题实际上涉及到他们中的许多人,他们使用的是他们自己的不完整的html渲染引擎。在这样的系统中,使用基于表的设计来确保邮件是可读的仍然是更好的选择,我不会做任何聪明的事情。

However, you may already know that email allows two types of attachment. If you mark an attachment as inline then it tends not to show up in the list of attachments (though it often does).

但是,您可能已经知道电子邮件允许两种类型的附件。如果您将一个附件标记为内联,那么它往往不会出现在附件列表中(尽管它通常会出现)。

I would think personally that ensuring the readability of the email is better than it not showing up and obviously the other approach of remote images doesn't help here.

我个人认为,确保电子邮件的可读性比不显示要好,显然远程图像的另一种方法在这里没有帮助。

#1


90  

I've done a more recent test at Litmus, with data URIs for inline <img> elements and css background images.

我最近在Litmus上做了一个测试,使用内联在主要的电子邮件客户端软件中,数据URI支持是什么?元素和css背景图像的数据uri。

These desktop clients do show data URIs:

这些桌面客户端确实显示了数据uri:

  • Apple Mail 5
  • Apple Mail 5
  • Apple Mail 6
  • Apple Mail 6
  • Lotus Notes 8
  • Lotus Notes 8
  • Outlook 2003
  • 展望2003年
  • Thunderbird 3.0
  • 雷鸟3.0
  • Thunderbird latest
  • 雷鸟最新

These mobile clients do show data URIs:

这些移动客户端确实显示了数据uri:

  • Android 2.3
  • Android 2.3
  • Android 4.0
  • Android 4.0
  • BlackBerry 5 OS
  • 黑莓5操作系统
  • iPad
  • iPad
  • iPhone 3GS
  • iPhone 3 gs
  • iPhone 4S
  • iPhone 4 s
  • iPhone 5
  • iPhone 5

None of the webmail clients showed data URIs.

没有一个webmail客户端显示数据uri。

These desktop clients don't:

这些桌面客户端不:

  • Lotus Notes 6.5
  • Lotus Notes 6.5
  • Lotus Notes 7
  • Lotus Notes 7
  • Lotus Notes 8.5
  • Lotus Notes 8.5
  • Outlook 2000
  • 展望2000年
  • Outlook 2002/XP
  • 展望2002 / XP
  • Outlook 2007
  • 展望2007年
  • Outlook 2010
  • 展望2010年
  • Outlook 2011
  • 展望2011年
  • Outlook 2013
  • 展望2013年

These mobile clients don't:

这些移动客户不:

  • Gmail (Android)
  • Gmail(Android)
  • Outlook.com (Android)
  • Outlook.com(Android)
  • Yahoo (Android)
  • 雅虎(Android)
  • BlackBerry 4 OS
  • 黑莓4操作系统
  • Symbian
  • 塞班
  • Windows Phone 7.5
  • Windows Phone 7.5

#2


8  

I just tested GMail, and it appears that GMail no longer supports data URIs.

我刚刚测试了GMail,看来GMail不再支持数据uri。

In addition, gmx.de (a very popular German web mail provider) converts image URIs to a URI on its server, and this doesn't seem to support data URIs.

此外,gmx.de(一个非常流行的德国web邮件提供程序)将图像URI转换为服务器上的URI,这似乎不支持数据URI。

#3


6  

Mac Mail, Outlook 2003 and MobileMe support data URIs. Not sure about the other clients, but you can easily find out — create a new message in Gmail, click 'insert image', then click 'use a URL' and paste in the data URI. Then, send it to a number of addresses and open it in the clients you want.

Mac Mail, Outlook 2003和MobileMe支持数据uri。不确定其他客户端,但是您可以很容易地找到——在Gmail中创建一个新消息,单击“插入图像”,然后单击“使用URL”并将数据URI粘贴进来。然后,将它发送到多个地址,并在您想要的客户端中打开它。

#4


3  

I can't answer the question about the support for data-uri directly but support for anything like this is often very bad in email browsers. The issue really spans from many of them using their own cut down rendering engines that aren't full html renderers. In a system that it's still preferable to use a table based design to make sure emails are readable I wouldn't try to do anything clever.

我无法直接回答关于数据uri支持的问题,但在电子邮件浏览器中,对此类支持通常非常糟糕。这个问题实际上涉及到他们中的许多人,他们使用的是他们自己的不完整的html渲染引擎。在这样的系统中,使用基于表的设计来确保邮件是可读的仍然是更好的选择,我不会做任何聪明的事情。

However, you may already know that email allows two types of attachment. If you mark an attachment as inline then it tends not to show up in the list of attachments (though it often does).

但是,您可能已经知道电子邮件允许两种类型的附件。如果您将一个附件标记为内联,那么它往往不会出现在附件列表中(尽管它通常会出现)。

I would think personally that ensuring the readability of the email is better than it not showing up and obviously the other approach of remote images doesn't help here.

我个人认为,确保电子邮件的可读性比不显示要好,显然远程图像的另一种方法在这里没有帮助。