SMTP with attachments

Prahlad Vaidyanathan slime at vsnl.net
Fri Apr 12 04:29:27 EDT 2002


Hi,

On Thu, 11 Apr 2002 Ezequiel, Justin spewed into the ether:
> How do I send an e-mail with attachments?

I recently found a module to do just that, which I find very useful.

Since I don't remember where I got it from, I've put it up here :

    http://www.symonds.net/~prahladv/files/MailMsg.py

The email module had a bug until recently when handling certain types of
attachments, so unless you have a fairly recent Python, I don't advise
using it. MimeWriter et al work fine :-)

HTH,

pv.
-- 
Prahlad Vaidyanathan  <http://www.symonds.net/~prahladv/>

If God hadn't wanted you to be paranoid, He wouldn't have given you such
a vivid imagination.








More information about the Python-list mailing list