Send emails with inline images.
Add the CID in the email HTML.
cid:
to reference the ID in the src
attribute of an image tag in the HTML body of the email.Reference the CID in the attachment
content_id
parameter in the attachment object (e.g. content_id: "logo-image"
).content_type
(e.g. image/png
) or filename
(e.g. logo.png
) parameter to the attachment object, as this often helps email clients render the attachment correctly.