Python To Send Emails Via Outlook Express

Ganesan R rganesan at myrealbox.com
Mon Dec 20 06:24:34 CET 2004


>>>>> "ian" == ian  <ian at kirbyfooty.com> writes:

> import win32com.client

> s = win32com.client.Dispatch('CDO.Message')
> s.From = "ian at kirbyfooty.com"
> s.To = "someone at yahoo.com"
> s.Subject = "The subject"
> s.Send

> ... but nothing happens.

> What am I doing wrong? Does anyone have some sample code to share with
> me please?

Try s.Send(). 

Ganesan



More information about the Python-list mailing list