Resend · api · fg-0406

Resend inline images with src=cid: show as broken or as plain attachments

If you see img src=cid:logo renders as a broken image, the cause and the fix for Resend are below, last verified 2026-10-15.

Verified Oct 2026trust 50/100
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

Related traps

Have your agent know this before it fails

$ /plugin marketplace add getfootgun/footgun
$ /plugin install footgun@footgun