Skip to main content
An inline image is an attachment that shows inside the message instead of as a download, for example a logo or a product photo. You attach the image with a Content-ID and refer to that ID from your HTML. Available on Free, Pro and Max. See plans and features.

How do I embed an image with the API?

Give the attachment a content_id wrapped in angle brackets, and use the same value without the brackets after cid: in your HTML:
The angle brackets in content_id are required. Without them the image is delivered as a regular downloadable attachment and doesn’t show in the message.
The same works with transactional templates: attach the image in the send request and refer to it from the template’s HTML with cid:. Embed small images that must always show, such as a logo. Link larger images and anything you might want to change later.

How do I embed an image over SMTP?

Add the image as a MIME part with a Content-ID header inside a multipart/related part, and refer to it with cid: in the HTML. Most mail libraries have a helper for this, often called an embedded or inline attachment.