PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook VBA Programming Sent Items unresolved To: address

Reply

Sent Items unresolved To: address

 
Thread Tools Rate Thread
Old 28-04-2004, 07:36 PM   #1
Carl Kasper
Guest
 
Posts: n/a
Default Sent Items unresolved To: address


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


  Reply With Quote
Old 29-04-2004, 02:58 PM   #2
Ken Slovak - [MVP - Outlook]
Guest
 
Posts: n/a
Default Re: Sent Items unresolved To: address

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.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Carl Kasper" <kaifareast@hotmail.com> wrote in message
news:upoNw%23ULEHA.3204@TK2MSFTNGP10.phx.gbl...
> 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
>
>



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off