Closed fdemello closed 5 years ago
Hello @fdemello,
Could you try with:
<img` src='cid:{{ image }}'><br/>
@aanriot That did not fix the problem. The difference is that I now don't see anything whereas before I saw broken images.
@fdemello you really could add cid:
to src, but also remove line message.transformer.synchronize_inline_images()
@lavr indeed, that works. Would you say that it's working as designed?
Actually there was no design for this case with custom list of embedded images. But I think it's okay to learn some email internals in such case.
Glad to hear we have a working method. I’ll close the issue. Thanks!
When using jinja from python-emails, if I pass a list of image files to embed to an e-mail, the images don't render. Sample code:
This results in the e-mail looking like this:
If, instead, I use regular jinja and render the HTML e-mail prior to sending, everything works as expected.
Version: 0.5.15