Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > sending a file as an attachment with smtplib

Reply
Thread Tools

sending a file as an attachment with smtplib

 
 
Stephen Boulet
Guest
Posts: n/a
 
      07-28-2004
Is it possible to send a file as an attachment using smtplib?

--

Stephen

If your desktop gets out of control easily,
you probably have too much stuff on it that
doesn't need to be there.
Donna Smallin, "Unclutter Your Home"
 
Reply With Quote
 
 
 
 
Peter Hansen
Guest
Posts: n/a
 
      07-28-2004
Stephen Boulet wrote:

> Is it possible to send a file as an attachment using smtplib?


Of course, but smtplib is just for sending raw data, not for
formatting the message itself. For that you need the "email"
module. Look in the docs for it, and specifically for the
examples, which include "Here's an example of how to send a
MIME message containing a bunch of family pictures that may
be residing in a directory:"

-Peter
 
Reply With Quote
 
 
 
 
Christos TZOTZIOY Georgiou
Guest
Posts: n/a
 
      07-30-2004
On Wed, 28 Jul 2004 04:18:42 -0500, rumours say that Stephen Boulet
<(E-Mail Removed)> might have written:

>Is it possible to send a file as an attachment using smtplib?


http://groups.google.com/groups?q=gr...ie=UTF-8&hl=en

Cheers
--
TZOTZIOY, I speak England very best,
"Tssss!" --Brad Pitt as Achilles in unprecedented Ancient Greek
 
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
Getting "empty" attachment with smtplib Tobiah Python 4 11-15-2012 05:26 PM
[SMTPLIB] how to send a "Multiline" mail with smtplib? Evan Python 3 06-23-2008 08:50 AM
Regarding Mail sending smtplib Module praba kar Python 0 05-11-2005 10:38 AM
How to add an attachment with smtplib module Sean Berry Python 3 04-29-2004 09:20 AM



Advertisments