您可以将 data:uri 格式的图像发送到 GMail 吗? [英] Can you send images in data:uri format to GMail?

查看:15
本文介绍了您可以将 data:uri 格式的图像发送到 GMail 吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在 Django 中制作一个网络应用程序,用于向用户发送图像到他们的电子邮件.

I'm making a web app in Django that sends user an image to their email.

发送图像对我来说最有吸引力的方式是在 data:uri格式.

The way that seems most attractive to me for sending the image is in the data:uri format.

但是,我测试了将包含 data:uri 图像的这封电子邮件发送到我的 GMail 帐户,电子邮件显示,但没有图像!

However, I tested sending this email with a data:uri image in it to my GMail account, and the email shows, but without the image!

我知道 Chrome 和 Firefox 都可以打开 data:uri 图像.所以这不是浏览器的问题.但我根本没有在 GMail 中看到 data:uri 图像.

I know that Chrome and Firefox can both open data:uri images. So it's not a browser problem. But I don't see the data:uri image in GMail at all.

GMail 不支持 data:uri 图像吗?还是我发错了?

Does GMail not support data:uri images? Or possibly I'm sending them wrong?

推荐答案

不支持.

邮件客户只需将其从您的帖子中删除.

Mail clients simply remove this from your post.

这里是可以支持的很好的参考:

Here is a good reference of what can be supported:

http://www.campaignmonitor.com/css/

这篇关于您可以将 data:uri 格式的图像发送到 GMail 吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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