Code: Select all
email_content = jinja_template.render(msg)
msg.attach(MIMEText(email_content, "html"))
body = f""" Sales Report {df.to_html()}
[img]cid:image1[/img]
`enter code here`
{% include 'path/to/template.html' %}
"""
msg.attach(MIMEText(body,'html'))
Danke