Python To Send Emails Via Outlook Express
ch.list at us-hampton.mail.saic.com
Mon Dec 20 17:40:46 CET 2004
> I'm a newbie (oh no I can here you say.... another one...)
> How can I get Python to send emails using the default windows email
> client (eg outlook express)?
> I thought I could just do the following
> 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"
> ... but nothing happens.
> What am I doing wrong? Does anyone have some sample code to share with
> me please?
Do a search on the list for the thread Fun with Outlook and MAPI.
That'll have your answers.
More information about the Python-list