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

feature: base64 image convert to attachments #89

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

jrbenriquez
Copy link

@jrbenriquez jrbenriquez commented Feb 4, 2024

feature: base64 image convert to attachments

Some email providers (Google) don't allow inline base64 images in emails i.e

I forked this and try to add it in as a feature and also adding an extra env EMAIL_CONVERT_BASE64_IMAGES

Can be further modified and improved in terms of how code is structured but wanted to get an initial impression from this PR if it's something the maintainers think is worth adding.

Basically this looks for base64 inlines within the body and creates attachments (added to the msg) and references as cid inside the tags

@jrbenriquez jrbenriquez force-pushed the feature/convert-base64-images branch 2 times, most recently from 1cb98ef to 483983f Compare February 4, 2024 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant