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

Ram Rachum picture Ram Rachum · Dec 20, 2011 · Viewed 10k times · Source

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?

Answer

Diodeus - James MacFarlane picture Diodeus - James MacFarlane · Dec 20, 2011

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/