simple example of mimelib? and embedding (not attaching) images in email sent with python.

Stephen shriek at
Fri Aug 17 09:05:59 CEST 2001

Tim Roberts <timr at> wrote in message 

> Note, however, that the standards for HTML formatted e-mail are still
> evolving.  Messages with image attachments in Outlook generally only look
> right when viewed in Outlook.
> You build your message with MIME type multipart/related.  You put the HTML
> text in a text/html part, and then use a series of image/gif attachments to
> hold the images.
> Chek RFC2557 at

Thanks for the great pointer. I'm still trying to digest and test this.

This may explain why I received screwy results such as 


Subject: This is a MIME example 

Content-Type: text/html;
    name="Just some HTML email"
Content-Description: Just some HTML email

Dear Boss,
This is <b>bold</b> of me but here's a clue as to what we should be using:

<img src="">


When I tried to use other code generously donated.

I soldier on. Will report back when success is reached.


More information about the Python-list mailing list