Skip to content

fix(email): embed brand logo as CID for Gmail - #559

Merged
unjica merged 2 commits into
developfrom
fix/email-logo-cid-gmail
Jul 18, 2026
Merged

unjica merged 2 commits into
developfrom
fix/email-logo-cid-gmail

Conversation

@unjica

@unjica unjica commented Jul 18, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Product release / notification emails were hotlinking ${TELEMETRY_DASHBOARD_ORIGIN}/telemetry-logo.jpg. That URL returns 200 in a browser, but Gmail rewrites images through Google Image Proxy, which Cloudflare often blocks — resulting in the green mountain broken-image placeholder.
  • Embed a compact 112×112 PNG as a Resend CID inline attachment (cid:tt-brand-logo) so Gmail does not need to fetch the logo from the site.
  • Document the Gmail/Cloudflare gotcha and apex-vs-www note in docs/MARKETING-EMAIL.md.

Test plan

  • pnpm lint && pnpm test && pnpm build
  • Unit tests for email send + release/notification templates
  • Send --test-to= release email after merge/deploy and confirm logo renders in Gmail (not the mountain placeholder)
  • Confirm notification alert emails also show the brand mark

Note

Low Risk
Scoped to email HTML rendering and Resend payload assembly; no auth or data-model changes, with unit test coverage.

Overview
Release and notification email headers no longer hotlink telemetry-logo.jpg from the dashboard origin. They now use cid:tt-brand-logo via a shared email-brand-logo module (compact 112×112 PNG as base64, img tag helper, Resend inline attachment).

sendTransactionalEmail gains optional Resend attachments and automatically attaches the brand logo when HTML references that CID (without duplicating if already provided).

docs/MARKETING-EMAIL.md documents the Gmail Image Proxy / Cloudflare issue, apex vs www, and CID vs hosted URLs.

Reviewed by Cursor Bugbot for commit 087168c. Bugbot is set up for automated code reviews on this repo. Configure here.

unjica and others added 2 commits July 18, 2026 13:00
Hosted /telemetry-logo.jpg returns 200 but Gmail's Image Proxy often
fails behind Cloudflare, showing a broken placeholder. Inline the mark
via Resend CID attachment instead of a hotlinked URL.

Co-authored-by: Cursor <[email protected]>
@unjica
unjica merged commit 84f2fa0 into develop Jul 18, 2026
8 of 9 checks passed
@unjica
unjica deleted the fix/email-logo-cid-gmail branch July 18, 2026 14:09
unjica added a commit that referenced this pull request Jul 18, 2026
Release v1.15.9 — email logo CID for Gmail (#559)
FelineFantasy pushed a commit to FelineFantasy/telemetry-tracker that referenced this pull request Jul 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant