smtp

Barry A. Warsaw barry at digicool.com
Mon May 14 23:05:07 EDT 2001


>>>>> "VD" == Vyacheslav Danovich <vdanovich at empireone.net> writes:

    VD> Hi!  I'm trying to write a python application that would send
    VD> mass emails with attachments.  SMTP does not provide
    VD> attachment capability.  What can I use instead?????  Any help
    VD> is appreciated...

Well, I really hope you're not sending unsolicited mass emails,
because that's just very uncool and possibly illegal.  Assuming what
you want to do is on the up-and-up though, it's good to understand
that smtplib.py just handles the low-level SMTP protocol, i.e. talking
to an SMTP server on your local system or out on the net.  It doesn't
handle crafting the actual email message that you're sending over the
SMTP protocol.

You might be interested in mimelib, which is a package I've written
and am using in Mailman.  It can be used to create an email message of
varying complexity and MIME-ness, which can then be flattened into
text for sending over the wire via smtplib.

mimelib can be found at http://sourceforge.net/projects/mimelib

Cheers,
-Barry




More information about the Python-list mailing list