How to send an email with an attached file ?
gsmatthew at ozemail.com.au
Wed Jun 25 12:43:36 CEST 2003
use the email module
this handles all email including attachments etc
"Michel Combe" <combe.michel at 9online.fr> wrote in message
news:bdbspj$p8nl3$1 at ID-181365.news.dfncis.de...
> Hi all,
> I need to write a program to send an email with an attached ascii file.
> I tried the example using MIMEText given at
> but this includes the ascii file *inside* the message. This is not what I
> want, I want it attached.
> I then tried the example using MIMEMultipart given at
> but this example does not run on my system (Python 2.2.1 on Linux). I
> receive a message :
> ImportError: No module named MIMEMultipart
> Can someone help ?
> Thanks in advance
> Michel Combe
More information about the Python-list