Sent Items unresolved To: address

  • Thread starter Thread starter Carl Kasper
  • Start date Start date
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
 
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.
 
Back
Top