如何成功地嵌入图像的HTML在网络邮箱显示? [英] How to successfully embed images in HTML for display in webmail clients?

查看:260
本文介绍了如何成功地嵌入图像的HTML在网络邮箱显示?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图做的使用都设有基地中的64个数据的URL codeD图像HTML签名。
这里有一个例子:

I'm trying to do a signature in HTML using images that are encoded in base 64 data URLs. Here's an example:

<img src="data:image/png;base64,iVBORw0KGgoAAAAN...kJggg==">

它的工作很好用的邮件软件的邮件在Mac或Thunderbird,但它不与webmail的工作,如Gmail,前景,roundcube,Hotmail的...

It's working nice with mail software as Mail on Mac or Thunderbird but it's not working with webmail such as gmail, outlook, roundcube , hotmail ...

你有任何想法如何使它工作吗?
我真想直接把这些图像源$ C ​​$ C,它更实用。

Have you any idea how to make it work ? I really want to put those images directly in the source code, it's more practical.

推荐答案

简单的答案?

您不能。 Gmail中,前景等会忽略的base64图像。

You can't. Gmail, outlook etc will ignore base64 images.

看看这个网站,了解更多有关这

因此​​,基于我们的结果,这显然是不值得你的电子邮件使用嵌入式图像。所有你做的是迫使人们下载EN codeD映像,他们将无法查看。

So based on our results, it is clearly not worth using embedded images in your emails. All you will be doing is forcing people to download encoded images that they will not be able to view.

这篇关于如何成功地嵌入图像的HTML在网络邮箱显示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆