simple example of mimelib? and embedding (not attaching) images in email sent with python.
Roman Suzi
rnd at onego.ru
Fri Aug 17 04:14:49 EDT 2001
On 16 Aug 2001, Stephen wrote:
> Markus wrote:
>
> >> the actual message as opposed to having them attached. This way, they
> >> display when the recipient views the message. Just how does one
> >> compose a message like that with Python may I ask?
> >
> >As far as I know, those image _are_ attached. But the body of the
> >message is html, and contains an img-tag that references the attachment.
> >
> >May be you can get a raw look on the source of such a message to
> >further introspect this.
>
> I checked this on Eudora and you're right. Eudora detaches the image
> and places it in a folder called "Embedded" and then uses an IMG tag
> <IMG SRC="file://.... Eudora\Embedded">
My understanding is that the place differs between different mailers. And
also it presents security hole if I call my image con\con.gif, for example
;-) If you use Windows, this will hang your machine.
> Note that this is different from the usual place Eudora would store
> attachments so there has to be some way this is noted in MIME.
>
>
>
> Roman Suzi <rnd at onego.ru> wrote :
> This is our <b>bold</b> new logo. Hope you like it.
> <img src="http://www.yourserver.com/yourlogo.gif">
THis is not interesting. Interesting is really embedding.
And that is what doesn't have uniform standard, if I am not
mistaken.
Another way to embed image is to use
X-faces: encodeddata
but I never used that too ;-)
> Love Steve
>
> Then Microsoft Outlook will send it as is and you'll receive the exact
> same HTML as above. But Outlook Express will actually include the image
> and send it as an 'embedded' image as described previously.
Sincerely yours, Roman A.Suzi
--
- Petrozavodsk - Karelia - Russia - mailto:rnd at onego.ru -
More information about the Python-list
mailing list