-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
issue with embed base64 image into jinja2 template #52
Labels
bug
Something isn't working
Comments
Why encode and decode again? You should be able to just embed the bytes if you can pass around the PIL.Image object instead, you should be able to embed that as well I may have misunderstood you problem, if these dont work please clarify the original type of the image object that is passed to these lines of code |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello Mikael,
Thank you for making red-mail, it's great helper.
Describe the bug
It seems it's not possible to embed base64 image into jinja2 template. Image is always attached to the email instead being embedded.
To Reproduce
Code:
Template file:
End result is attached image instead of embedded:
Expected behavior
Expecting that this would work the same way, as when no template is being used like in this example:
Without template, image is embedded correctly:
Email provider:
Environment (please complete the following information if relevant):
The text was updated successfully, but these errors were encountered: