Hi Everyone,
Recently I found out how to
send emails using Python via the default email client (eg Outlook
Express)
A suggestion was made to post a message
here.
The script will allow multiple recipients and
multiple attachements.
Syntax
simplemapi.SendMail(recipient,subject,body,attachment)
where:
recipient - string: address to
send to (multiple address sperated with a semicolin) subject - string: subject header body - string: message text attach - string: files to attach (multiple attachments sperated with a semicolin) Example usage
import
simplemapi
simplemapi.SendMail("[EMAIL PROTECTED];[EMAIL PROTECTED]","My Subject","My message body","c:\attachment1.txt;c:\attachment2") I hope it is of some help to
others.
You can download the script from http://www.kirbyfooty.com/simplemapi.py
Kind regards
Ian Cook
|
_______________________________________________ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32