I can't get thunderbird to show any inline images that I email via python. It shows small empty boxes on the image and the image under the body (not a typical application).
letters are true in Outlook and Yahoo.
Am I missing a headline?
self.msg = MIMEMultipart( ) fp = open( path2img , 'rb') msgImage = MIMEImage(fp.read()) fp.close() msgImage.add_header('Content-ID', '<imagename>') msgImage.add_header('Content-Disposition' , 'inline' , filename='image.png') msgImage.add_header('Content-Type' , 'image/png') self.msg.attach(msgImage)
My source image in the body of the letter:
<img src="cid:imagename">
I looked everywhere and I canβt understand why! please, help.
(my Python may be small, but good enough for Outlook / Yahoo)
early
source share