Create HTML Mail with inline Image and PDF Attachment
I want to write a HTML mail in Python/Django containing these parts: HTML linking to logo.png logo.png which should be displayed inline (not as attachment) in the mail user agent info.pdf which should be displayed as attachment Text which should be displayed if the mail user agent can't display HTML. I followed this blog post. Result: The HTML and the inline image works but the info.pdf file gets treated like the inline logo.png, and some mail user agent don't show it :-( How to create both ways (download (info.pdf) and inline (logo.png)) in one mail in python? I reverse engineered that this