Python To Send Emails Via Outlook Express
ian at kirbyfooty.com
ian at kirbyfooty.com
Mon Dec 20 00:13:25 EST 2004
Hi,
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?
Thank you!
Ian Cook
(freeware author of Kirby Alarm And Task Scheduler www.kirbyfooty.com)
More information about the Python-list
mailing list