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.
 
Top