[Tutor] This will run on Outlook but not Outlook Express

Grady Henry gwhjr at cox.net
Sun Aug 6 03:44:26 CEST 2006


The following script will run on Microsoft Outlook but not on Outlook Express:

from win32com.client import Dispatch
s=Dispatch("Mapi.Session")
s.Logon()
newMsg = s.Outbox.Messages.Add("Hi from Python", "Hello")
recip = newMsg.Recipients.Add("Greg Hart", "SMTP:gwhjr at rock.com")
newMsg.Send()
s.DeliverNow()

I was wondering if I could write a script that would run on both Outlook and Outlook Express.

Can anybody help?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20060805/7fcdb528/attachment.htm 


More information about the Tutor mailing list