SMTP with attachments

Ezequiel, Justin j.ezequiel at spitech.com
Thu Apr 11 05:34:11 EDT 2002


How do I send an e-mail with attachments?
I am a newbie so be gentle.
I found a couple of examples (mfetch.py and MailTest.py) but could not get them to work.
MailTest.py raises an exception re "instructions.txt" not found.
mfetch.py imports "win32com.client" which I don't have and may not want to use as my program most likely will be run on a Linux box.
Please help.
 <<MailTest.py>> 
 <<mfetch.py>> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MailTest.py
Type: application/octet-stream
Size: 1641 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20020411/93f140ef/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mfetch.py
Type: application/octet-stream
Size: 11849 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20020411/93f140ef/attachment-0001.obj>


More information about the Python-list mailing list