Outlook COM: how to create a MailItem from a .msg file
Guy Lateur
guy.lateur at b-b.be
Mon Jul 4 09:40:48 EDT 2005
Thanks for the tip, Simon, but unfortunately it doesn't work; it says "The
interface name 'MailItem' does not appear in the same library as object
'<win32com.gen_py.Microsoft Outlook 11.0 Object Library._DocumentItem
instance at 0x29912600>"
Anything else I could try?
Cheers,
g
"Simon Brunning" <simon.brunning at gmail.com> schreef in bericht
news:mailman.1312.1120478222.10512.python-list at python.org...
Well, I don't know anything about Outlook's COM interface, so I don't
know if this will work, but you might try win32com.client.CastTo().
Something like:
my_MItem = win32com.client.CastTo(my_DItem, 'MItem')
--
Cheers,
Simon B,
simon at brunningonline.net,
http://www.brunningonline.net/simon/blog/
More information about the Python-list
mailing list