Sent Items unresolved To: address

C

Carl Kasper

Hi NG,

I can't find a way to get the fully qualified TO address of a mail item in
the sent items folder (olSentMail). It just gives me the display name but
not the actual email address.
I need the fully qualified email address to loop through the sent items
folder and retrieve the messages that were sent to a specific email address.

Any hint is greatly appreciated.

Thanks,

Carl
 
K

Ken Slovak - [MVP - Outlook]

You don't say what version of Outlook you are using, but Outlook 2003 has a
MailItem.SenderEmailAddress property.

If you aren't using Outlook 2003 the actual email address isn't exposed in
the Outlook object model. You have to use CDO 1.21 (optional installation
for Outlook 2000 and later and that property is subject to the security
prompts), Extended MAPI (C++ or Delphi code only) or Redemption (3rd party
library at www.dimastr.com/redemption) to get the email address.

See http://www.slovaktech.com/code_samples.htm#FromAddress for a CDO 1.21
example.

Go to http://www.dimastr.com/redemption/ and click on the Redemption Objects
button and then the Examples link to see a Redemption version of how to do
it.
 

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