How to send an email with an attached file ?
Michel Combe
combe.michel at 9online.fr
Wed Jun 25 06:17:47 EDT 2003
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
http://www.python.org/doc/current/lib/email-simple.txt
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
http://www.python.org/dev/doc/devel//lib/email-mime.txt
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
mailing list