恩的base64在电子邮件签名codeD

恩的base64在电子邮件签名codeD

本文介绍了恩的base64在电子邮件签名codeD映像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要包括电子邮件签名一些图像(公司标志的等)。我有各种各样的利用问题的电子邮件系统(它们会作为附件发送通常情况下)产生的嵌入图像的问题,如链接的图像(要求许可,以显示他们收到的电子邮件)。

我刚才看到从交换一些电子邮件有重新的标识presentation一个base64图像,并使用一个标签做展示。我在寻找我如何能做到这一点的电子邮件签名,如果可能的一些信息(我怎么生成的标识一开始,什么code,我需要得到它的工作以base64版)

我试过简单的事情,如

 <身体GT;
<跨度>
&所述; IMG SRC = ....>
< / SPAN>
< /身体GT;

但我得到的是alt文本,所以我明明在这里做得不对。


解决方案

重要

我的回答如下说明了如何使用嵌入数据URI图像。这是网络非常有用,但将无法可靠地对大多数电子邮件客户端工作。对于电子邮件的目的


BASE-64数据在 IMG 标签的法律,我相信你的问题是如何正确地插入这样的图像标记。

您可以使用在线工具或code几行来生成基本的64串。

从在线数据源的图像的语法是:

 < IMG SRC =数据:图像/ PNG; BASE64,iVBORw0KGgoAAAANSUhEUgAAAAUA
AAAFCAYAAACNbyblAAAAHElEQVQI12P4 // 8 / w38GIAXDIBKE0DHxgljNBAAO
9TXL​​0Y4OHwAAAABJRU5ErkJggg ==ALT =红点>

http://en.wikipedia.org/wiki/Data_URI_scheme

I have to include some images (company logo's etc) in email signatures. I've had all sorts of issues using the embedded images produced by the email system in question (they get sent as attachments generally) and as linked images (requiring permission to display them in the email received).

I have just seen some email from exchange that has a base64 image representation of the logo and uses a tag to do the displaying. I'm looking for some information on how I could do this in an email signature if possible (how do I generate the base64 version of the logo for a start and what code do I need to get it to work)?

I've tried simple things such as

<body>
<span>
<img src=.... >
</span>
</body>

but all I get is the alt text so I'm obviously doing something wrong here.

解决方案

Important

My answer below shows how to embed images using data URIs. This is useful for the web, but will not work reliably for most email clients. For email purposes be sure to read Shadow2531's answer.


Base-64 data is legal in an img tag and I believe your question is how to properly insert such an image tag.

You can use an online tool or a few lines of code to generate the base 64 string.

The syntax to source the image from inline data is:

http://en.wikipedia.org/wiki/Data_URI_scheme

这篇关于恩的base64在电子邮件签名codeD映像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-31 18:26