发送HTML电子邮件一个base64形象 [英] Send a base64 image in HTML email

查看:172
本文介绍了发送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-CN codeD映像。

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:

<一个href=\"http://www.campaignmonitor.com/blog/post/3927/embedded-images-in-html-email\">http://www.campaignmonitor.com/blog/post/3927/embedded-images-in-html-email

和帖子内容:

And the post content:

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

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