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

Stephen shriek at gmx.co.uk
Fri Aug 17 03:05:59 EDT 2001


Tim Roberts <timr at probo.com> 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 http://www.ietf.org/rfc/rfc2557.txt

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 

--192.168.2.137.1.1764.997875395.419.408
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="http://www.python.org/pics/pythonHi.gif">

__________________________________________________________________        


When I tried to use other code generously donated.

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

Stephen.



More information about the Python-list mailing list