zipfile as email-attachment

Martin v. Löwis martin at v.loewis.de
Thu Dec 12 12:44:51 EST 2002


"Jürgen Kareta" <jkareta at vanilia.de> writes:

> i try to send a mail with a zipfile attachment. If i use MIMEText i get a
> Textfile and if i use MIMEImage i get a exeption. Can anybody give me some
> hints, how i can transfer the zipfile

You should use a MIMENonMultipart, and pass 'application','zip' to the
constructor.

Regards,
Martin




More information about the Python-list mailing list