- Symptom
- img src=cid:logo renders as a broken imageImage arrives as a separate attachment instead of inlineinlineContentId missing from the SDK attachment type
- Cause
- Inline embedding needs the attachment field inlineContentId matching the cid in the HTML, which only exists from resend 4.8.0. Older field names from other providers are ignored.
- Fix
- Upgrade to resend 4.8.0 or later and set inlineContentId on the attachment to the same name used after cid:.
- Apply
attachments: [{ filename: 'logo.png', content: buf, inlineContentId: 'logo' }] // <img src="cid:logo">- Affected
- resend (Node SDK) below 4.8.0, Resend API before August 2025
- Sources
Last verified 2026-10-15 · Confirmed by 0 builders