469,949 Members | 2,631 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,949 developers. It's quick & easy.

sending a file as an attachment with smtplib

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"
Jul 18 '05 #1
2 4405
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
Jul 18 '05 #2
On Wed, 28 Jul 2004 04:18:42 -0500, rumours say that Stephen Boulet
<st********@spam.theboulets.net.please> 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
Jul 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by praba kar | last post: by
reply views Thread by praba kar | last post: by
5 posts views Thread by Kun | last post: by
5 posts views Thread by Merrigan | last post: by
7 posts views Thread by 3KWA | last post: by
14 posts views Thread by sridhar | last post: by
4 posts views Thread by krishnakant Mane | last post: by
2 posts views Thread by ornto | last post: by
5 posts views Thread by sui | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.