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

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 :)
 
D

Dmitry Streblechenko \(MVP\)

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
 

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