Html 未在 gmail 中解码 base64
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12655764/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
base64 not being decoded in gmail
提问by no0ne
To avoid unloaded images, for my inline html-mail I've encoded all images (4 actual images and 6 empty gif for spacing) to base64 strings,. Works pretty fine how-ever gmail refuses to decode these back into images. I've done some pretty extensive investigation but came up empty handed.
为了避免卸载图像,对于我的内联 html 邮件,我已将所有图像(4 个实际图像和 6 个用于间距的空 gif)编码为 base64 字符串。工作得很好,但是 gmail 拒绝将这些解码回图像。我做了一些相当广泛的调查,但空手而归。
What about cid:url?
cid:url 呢?
回答by cusman
Gmail Web Client does support embedded images
Gmail 网络客户端确实支持嵌入图像
See my answer to Base64 images to gmail
查看我对 Gmail 的 Base64 图像的回答
回答by Jeremy
Gmail doesn't anymore.
Gmail 没有了。
Apple mail is one of the few that still does. So unless you plan on sending only to apple owners, you may want to find another way to do that
Apple 邮件是少数仍然这样做的邮件之一。因此,除非您打算只发送给苹果所有者,否则您可能想找到另一种方法来做到这一点
For example, adding another part with your base64 image: Content-Type: image/png; name="imagename.png" Content-Disposition: inline; filename="imagename.png" Content-Transfer-Encoding: base64
例如,使用 base64 图像添加另一个部分:Content-Type: image/png; name="imagename.png" Content-Disposition: inline; filename="imagename.png" 内容传输编码:base64