I'm sending base64
encoded images in a markdown newsletter to different email services from a rich text editor
. Every service renders the images properly except gmail
. Instead it displays the base64 string
:
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAACLQAAAxOCAYAAAD0p7d8AA...
The main SO thread regarding this problem does not provide a solution, as can be seen in the comments of the accepted answer.
How does one display images from a data string
in gmail? Is it possible to insert a transformation layer to make it work? (I can't believe gmail doesn't support this after 6 years)
Gmail does not support embedded Base 64 images (see Can I email). I believe this is for general security reasons. You either need to generate your image server side. Or send it as an attachment (like in the other post you mentioned).
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