在HTML电子邮件中发送base64映像 [英] Send a base64 image in HTML email

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

问题描述

使用富文本编辑器,我们的用户可以将保存的图像从桌面拖放到编辑器。图像出现并在提交后在网页中正确显示。

Using a rich-text editor, our users can drag and drop a saved image from their desktop to the editor. The image appears and displays properly in the web page after they submit.

由于图像未在任何位置上传,因此编辑器将图像保存为base64编码图像。

Since the image is not uploaded anywhere, the editor saves the image as a base64-encoded image.

<img alt="" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA4QAAAFKCAIAAADKUQaBAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAP+lSURBVHhepP1p32zb

等。

但它不显示 - 不在iPhone上,也没有两个不同版本的Outlook,图像很简单,我们想坚持使用base64,因为它已经在使用网页,并且如果用户离线,则可以查看图像。

But it doesn't show up - not on the iPhone, nor two different versions of Outlook. The image is simply broken. We want to stick with base64 due to it already working with the web page and the ability to view an image if the user is offline.

推荐答案

不幸的是,支持是最残酷的,这是一个关于这个主题的帖子:

Support, unfortunately, is brutal at best. Here's a post on the topic:

http://www.campaignmonitor.com/blog/post/3927/embedded -images-in-html-email

发布内容:

And the post content:

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

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