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!!
In your html you need the fully qualified path to the image:
http://yourdomain.com/images/image.jpgYou should be able to take the URL in the image tag, paste it into the browser’s address bar and view it there. If you can’t see it, you’ve got the wrong path.