Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

base64 not being decoded in gmail [closed]

Tags:

html

email

base64

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.

What about cid:url?

like image 744
no0ne Avatar asked Sep 29 '12 19:09

no0ne


People also ask

Does Gmail support Base64 encoded images?

Gmail does not support base64 embedded images.

Does Gmail block embedded images?

Google's Gmail website automatically blocks many email images until it's sure the messages are coming from a trusted source. You can't instruct Gmail to always show images from all senders, but you can allow images from certain senders by clicking "Always Display Images From …" at the top of their messages.

Why does Base64 always end with?

Q Why does an = get appended at the end? A: As a short answer: The last character ( = sign) is added only as a complement (padding) in the final process of encoding a message with a special number of characters.

Can I use Base64 image in email?

The good news is that Apple email client is friendly to base64 encoded images and has a good chance of instantly displaying them.


2 Answers

Gmail Web Client does support embedded images

See my answer to Base64 images to gmail

like image 64
cusman Avatar answered Sep 30 '22 07:09

cusman


Gmail doesn't anymore.

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

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

like image 27
Jeremy Avatar answered Sep 30 '22 06:09

Jeremy