KamoCRM

Never send an inline image the HTML does not cite (logo shown as attachment)

FixEmailService
Shipped
November 13, 2026 at 5:23 AM UTC
Author
Kamo
Commit
6dbcf0e

Every templated send carried BOTH org logo parts (cid:emaillogo and cid:emaillogomark), but 41 of the 108 canonical templates print only the header logo. The footer-mark part was then an inline part nothing cited, which Gmail and Apple Mail list as an attachment: members saw the org logo as a file on the HR legal letters, e-sign, training, quote and invoice mail. The outbound rule now matches the inbound one (EmailImapService): a part is inline only when the HTML cites its cid:, case-insensitive and percent-decoded. MimeMessageFactory builds multipart/related only from cited images (no cited image: plain text/html), and EmailTemplateService.render hands callers only the logos the letter prints. The cited logo stays a cid: PNG part (inline disposition, no filename): Gmail will not render an SVG or a remote logo reliably and Outlook blocks remote images by default, so cid is the one that paints everywhere.

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing