Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: How to send an email with an attached file ?

Reply
Thread Tools

Re: How to send an email with an attached file ?

 
 
Graeme Matthew
Guest
Posts: n/a
 
      06-25-2003
use the email module

this handles all email including attachments etc

"Michel Combe" <> wrote in message
news:bdbspj$p8nl3$...
> 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
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Windows XP freezes when USB mouse/keyboard are attached but not when a serial set is attached John Dalberg Computer Support 4 06-17-2007 09:27 AM
How to have email form send email and start file download bmurphy@xlrotor.com Javascript 13 05-14-2006 06:27 PM
Re: How to send an email with an attached file ? Miki Tebeka Python 0 06-26-2003 06:16 AM
Re: How to send an email with an attached file ? Bernard Delmée Python 0 06-25-2003 08:45 PM



Advertisments