Python To Send Emails Via Outlook Express

ian at kirbyfooty.com ian at kirbyfooty.com
Mon Dec 20 09:47:26 CET 2004


Hi Ganesan

Wow, I'm REALLY impressed with the high level of support in this forum.
(Another great reason to continue learning Python <grin>

I tried what you suggested.
After trying a different from/to address the message is sent. But it is
NOT sent via Outlook Express.

I would appreciate any other suggestions.

Thanks in advance


The script is now..

import win32com.client

s = win32com.client.Dispatch('CDO.Message')
s.From = "ian at cgbs.com.au"
s.To = "ian at kirbyfooty.com"
s.Subject = "The subject"
cdoSourceOutlookExpress        = 2
s.Configuration.Load(cdoSourceOutlookExpress)
s.Send()




More information about the Python-list mailing list