
Outlook Object Model and CDO
CDO is subject to the same security prompts as the Outlook model. Redemption
and Extended MAPI are the only approaches that doesn't involve prompts.
THe sample at http://www.cdolive.com/cdo5.htm#EMailAddressOfSender shows how
to get the SMTP address from an Exchange recipient.
--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming - coming Fall 2002
http://www.slipstick.com/books/jumpstart.htm
Quote:
> Hi Sue,
> thanks for the reply.
> My assumptions:
> re MailItem.To - it may return an Address-book-resolved
> address ;-(
> re MailItem.Recipients - accessing it may pop up the
> security warning ;-(
> Any hint regarding the CDO linkage with Outlook Object
> Model?
> TIA,
> Lubos.
> P.S.: I know there is this Redemption thing but isn't
> there any other way?
> >-----Original Message-----
> >You can use either MailItem.To or MailItem.Recipients.
> >> Hello,
> >> I have an application using Outlook Object Model.
> >> I'd like to get "To" property of a MailItem in SMTP
> >> format. Is it possible using Outlook Object Model?
> >> If not, is there a direct way how to initiate CDO's
> message
> >> object using an Outlook Object Model's MailItem object?