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?
Gmail does not support base64 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.
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.
The good news is that Apple email client is friendly to base64 encoded images and has a good chance of instantly displaying them.
Gmail Web Client does support embedded images
See my answer to Base64 images to gmail
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With