Skip to content

Passing a body_image reference in body_params #44

Answered by Miksus
rfow asked this question in Q&A
Discussion options

You must be logged in to vote

This seems an interesting dilemma that I haven't thought of. What is done with the body images (if I remember correctly on top of my head) is that first, CIDs are defined for each of them (Content-IDs) using a function from the email library, they are wrapped with utility class BodyImage that is actually passed to the HTML template using Jinja as "direct" arguments and then the actual image is read/parsed and put as an inline image to the email body.

For time being, unfortunately, I cannot think of a convenient solution.

I think we could do something about this though. Probably passing the images as an argument called just body_images if one wishes to loop through them, and why not do the…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rfow
Comment options

Answer selected by rfow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants