smtp mail with attachment

Mark Pilgrim f8dy at
Tue Feb 6 15:29:39 CET 2001

In article <n6Tf6.5629$tv5.438444 at>,
  "Scott Hathaway" <slhath at> wrote:
> How do I send an email with an attachment with python (I need a cross
> platform solution for Windows and Unix)?

Found this on the Python Knowledge Base (a wonderful resource, if you
don't know about it):

The post references a script available via FTP, but the URL is no
longer valid; here is the correct URL:

The script contains some Windows-specific stuff, but I believe the
class you want (SMTPWriter) is cross-platform.

Hope this helps.

You're smart; why haven't you learned Python yet?

Sent via

More information about the Python-list mailing list