N
Novuβ€’2mo ago
rbbr31

πŸ“§ Question about Inline Image Support

Hi Novu team! πŸ‘‹ Does Novu support inline images in emails? By inline images, I mean images that are embedded directly in the email body (like <img src="cid:image1">) rather than as downloadable attachments. Questions: Does Novu have native support for inline images? If not natively, can this be achieved via provider overrides (specifically for AWS SES)? Any documentation or examples for implementing inline images? Currently our images show up as downloadable attachments, but we need them embedded in the email content for better user experience. Thanks! πŸ™
14 Replies
Pawan Jain
Pawan Jainβ€’2mo ago
Hi! The attachments array: https://docs.novu.co/platform/integrations/email#sending-email-attachments

Also provides the: cid and disposition params, for cid, use the relevant id, and disposition: inline Let me know if that helps πŸ™
rbbr31
rbbr31OPβ€’2mo ago
Hi Dima, I tried that: "payload": { "subject": "new subject", "emailBody": "<p>test</p><img src=\"cid:imageone\" alt=\"print.png\"></p><p></p>", "attachments": [ { "file": "<base64_file>", "name": "print.png", "mime": "image/png", "cid": "imageone", "disposition": "inline" } ] }, but the image is still broken
No description
No description
rbbr31
rbbr31OPβ€’2mo ago
Oh btw, I'm using the API not the SDK
Pawan Jain
Pawan Jainβ€’2mo ago
@rbbr31 Could you please share the transactionId from the activity feed?
rbbr31
rbbr31OPβ€’2mo ago
Sure it's txn_68dfbfbc093rmm7f0cpe
Pawan Jain
Pawan Jainβ€’2mo ago
@rbbr31 Thanks, I see you are using custom smtp provider integrations. Sharing the issue with team
rbbr31
rbbr31OPβ€’2mo ago
Thanks! Hey @Pawan Jain just checking if you have an update about the issue.
Novu_Bot
Novu_Botβ€’2mo ago
@rbbr31, you just advanced to level 1!
Pawan Jain
Pawan Jainβ€’2mo ago
Apologies, it is taking a bit longer than expected. I will keep you updated
rbbr31
rbbr31OPβ€’2mo ago
No worries and thank you for looking into this
Pawan Jain
Pawan Jainβ€’2mo ago
A small update: we have created a PR to fix this https://github.com/novuhq/novu/pull/9330

Will keep you updated once this is fixed
rbbr31
rbbr31OPβ€’2mo ago
Thanks!
Pawan Jain
Pawan Jainβ€’2mo ago
Could you please check this from your side? It should be fixed now
rbbr31
rbbr31OPβ€’2mo ago
Hey @Pawan Jain it's working. Thanks a lot!

Did you find this page helpful?