Retrieving E-mail id

A

Anand

Hi,
I'm working on an Outlook 2K addin (Windows 2K, VC7) and want to get the
sender's e-mail id programattically. I'm doing something like this:

CComQIPtr <Outlook::_MailItem> spMailItem(pItem);
spMailItem->get_SenderName(&bstr);

But the above statement returns only the name and not the e-mail id. How do
I get the actual e-mail address? Any thoughts...??
-Ramanand.
 

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