Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
806 views
in Technique[技术] by (71.8m points)

email - Can you send images in data:uri format to GMail?

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

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

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!

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.

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

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

It's not supported.

Mail clients simply remove this from your post.

Here is a good reference of what can be supported:

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...