Python To Send Emails Via Outlook Express
Chris
ch.list at us-hampton.mail.saic.com
Mon Dec 20 11:40:46 EST 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"
> s.Send
>
> ... 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.
Chris
More information about the Python-list
mailing list