How to get a CDO Message object form a Outlook.MailItem ?

G

Gilles Lambert

Hi,

I'm trying to get the Internet header from a MailItem object.

I've seen that i have to référence the CDO library (cdosys.dll version
6) which expose the Message object.

I've found many examples with the MAPI.Session from the CD0.sys Version
1.2 which is not on my system.

So does anybody knows how to instanciate this object from a
Outlook.MailItem object ?

Thanks and best regards
Gilles


*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
 
K

Ken Slovak - [MVP - Outlook]

There are many different CDO's and that is not the one you want to use. You
want to use CDO 1.21, which is an optional installation for Outlook 2000 and
later. It can be installed if it is not already installed from the
Add/Remove Programs application in the Control Panel. The file that is
installed and must be referenced is CDO.DLL.

Be aware though that in secure versions of Outlook accessing the Internet
headers in a mail item will fire the security prompts.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top