PC Review
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook VBA Programming
Sent Items unresolved To: address
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook VBA Programming
Sent Items unresolved To: address
![]() |
Sent Items unresolved To: address |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
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 |
|
|
|
#2 |
|
Guest
Posts: n/a
|
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 > > |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

