TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: How do you handle images in email templates?

4 pointsby rob001over 6 years ago
There doesn&#x27;t seem to be a recommended way of handling images that I can see, with three options being:<p>1. Linked images 2. Cid images (images are attached) 3. Base64 encoded images<p>My gut says to stick to linked images for simplicity and ensure the image title tags are descriptive. At work we use cid images as they seem to show up more often during testing.<p>Any recommendations?

2 comments

chatmastaover 6 years ago
This is not my area of expertise, but I do know that for a reader in Gmail, the behavior is always the same: Google downloads the image and serves it to the user from their own servers (designed to beat tracking pixels).<p>You might find this SendGrid post [0] helpful, but probably you&#x27;ve seen it already.<p>[0] <a href="https:&#x2F;&#x2F;sendgrid.com&#x2F;blog&#x2F;embedding-images-emails-facts&#x2F;" rel="nofollow">https:&#x2F;&#x2F;sendgrid.com&#x2F;blog&#x2F;embedding-images-emails-facts&#x2F;</a>
SmileyJamesover 6 years ago
<a href="https:&#x2F;&#x2F;mjml.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;mjml.io&#x2F;</a> may help you with a lot of email html headaches. I suggest option 1 - linked images, worked for me.