3 ms·
While we are at it, what is the most surefire way to include images into email? How do I make sure that simple images, like logos, are shown in most common emai
by alentred 3y ago
While we are at it, what is the most surefire way to include images into email? How do I make sure that simple images, like logos, are shown in most common email clients?
- gabereiser 3y agobase64 encoded <img src"<base64>">... It's the only way to ensure you're logo is forwarded to every single CC and BCC. edit I take it all back, gmail strips them. I guess as an attachement and then referenced like <img src="cid:<id>">
- javitury 3y agoGmail does not support base64 images according to caniemail https://www.caniemail.com/features/image-base64/ https://www.caniemail.com/features/image-base64/ The most reliable method is to attach a png image to the email and reference it from the body using `<img src="cid:insert_cid_ref_here" `
- SAI_Peregrinus 3y agoYou don't. Common email clients block images by default, because advertisers used them for tracking. Or you make ASCII art of the logo.
- chungy 3y agoOr you include a base64-encoded version of the image. Doing it in-line in HTML should work; I believe <img> tags can also reference an email attachment containing the image (email attachments are base64-encoded anyway...).