Embed images

Display images in HTML email using hosted URLs. CID inline attachments are not supported yet.

The simplest way to show images in Piisend email is to reference a public HTTPS URL in your HTML body.

Hosted images (supported today)

1. Upload your image

Host the image on your CDN, object storage, or static site. Use HTTPS and a stable URL.

2. Reference it in HTML

<p>Thanks for joining!</p>
<img src="https://cdn.example.com/welcome-banner.png" alt="Welcome" width="600" />

3. Send as usual

Pass the HTML in the html field on POST /emails. No special attachment fields are required for hosted images.

Tips

  • Always set width / height or inline styles so layout is stable in clients that block remote images initially.
  • Provide alt text for accessibility.
  • Use your own domain or a trusted CDN—some clients flag unknown image hosts.

CID inline images (not supported yet)

Some providers let you embed images with cid: references and matching attachment content_id fields. Piisend does not support CID embedding today.

Workaround: use hosted HTTPS URLs as above.

Alternative: attach the image as a regular attachment (shown as a downloadable file, not inline in the body).

Related

Documentation

Integrate with the REST API

Quickstart, API reference, and webhooks—everything you need to send from your app.