I am working with a Python function that sends mails wich include an attachment and a HTML message......I want to add an image on the HTML message using 
<img src="XXXX">
When I try it, the message respects the tag, but does not display the image I want (it displays the not found image "X").....
does anyone know if this is a problem with the MIME thing....because i am using the MIMEMultipart('Mixed').....
or it is a problem with the path of the image (I'm using the same path for the atachment file and there is no problem with it)....
I dont know what else could it be!!
thanks a lot!!
You need to write src="cid:ContentId" to refer to an attached image, where ContentId is the ID of the MIME part.
Image in the HTML email message