How do I get SMTP addresses from Reply-To names?

  • Thread starter Thread starter Andrew
  • Start date Start date
A

Andrew

I have been able to sucessfully access the PR_REPLY_RECIPIENT_NAMES
property of the email that I am composing and am able retrieve a
string of the reply-to recipient display names. So now I need to go
one step further... Getting the SMTP addresses!

I'm not sure as to what the next step would be. Can anyone point me
in the right direction? Would the PR_REPLY_RECIPIENT_ENTRIES property
be more beneficial?

I assume I will need to look the names up in the address book or
something similar. If so how do I get a pointer to the IAddrBook
interface? I'm using Extended MAPI and have a pointer to the IMessage
interface.

Cheers :)
 
Use entries from PR_REPLY_RECIPIENT_ENTRIES to call IAddrBook::OpenEntry(),
then retrieve the e-mail addresses from the returned IMailUser.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
Back
Top