Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add support for using embedded images in email providers #5457

Open
wants to merge 1 commit into
base: next
Choose a base branch
from

Conversation

smbecker
Copy link

What changed? Why was the change needed?

Given that some of the most used email clients don't support things like base64 images or SVGs as alternatives, using embedded images was the only way that I could get important graphics to display in an email.
https://www.caniemail.com/features/image-base64/
https://www.caniemail.com/features/html-svg/

This is also required to make any progress on #4671

closes #4668

Copy link

netlify bot commented Apr 25, 2024

👷 Deploy request for dev-web-novu pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit fe8ebc1

Copy link

netlify bot commented Apr 25, 2024

Deploy Preview for novu-design ready!

Name Link
🔨 Latest commit fe8ebc1
🔍 Latest deploy log https://app.netlify.com/sites/novu-design/deploys/662ac48dfa07880008a8d9d0
😎 Deploy Preview https://deploy-preview-5457--novu-design.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@@ -16,6 +16,7 @@ export interface IEmailOptions {
from?: string;
text?: string;
attachments?: IAttachmentOptions[];
inlineAttachments?: IAttachmentOptions[];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@smbecker we already have a disposition flag passed in the IAttachmentOptions
https://github.com/smbecker/novu/blob/fe8ebc1a57f18626b78340883871ba11a7252c52/packages/stateless/src/lib/template/template.interface.ts#L57

I would prefer if we have a single attachments array, with attachments of different types rather a new array.

What are your thoughts of those 2 approaches?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Honestly, when I initially kicked off this branch, cid and disposition weren't available several months ago. I finally got some time to finish but I should have checked on recent changes. I'll rework the PR to take advantage of those.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🚀 Feature: Embedded image attachments
2 participants