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 ?

 
 
Bernard Delmée
Guest
Posts: n/a
 
      06-25-2003
> 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)


The email module should be included in 2.2
The CookBook has an example of encoding and bundling attachments:
http://aspn.activestate.com/ASPN/Coo...n/Recipe/86674
and decoding is also explained:
http://aspn.activestate.com/ASPN/Coo...n/Recipe/86676

For older python versions, the following snippet might get you going:
http://sourceforge.net/snippet/detai...ppet&id=100444



 
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 ? Graeme Matthew Python 0 06-25-2003 10:43 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57