View Single Post
  #2  
Old July 3rd 09, 11:59 AM posted to microsoft.public.outlook.program_addins
Ashutosh Jogdande
external usenet poster
 
Posts: 10
Default Get SMTP address of sender in outlook 2003

Hello Nagaraj,

You can get this by Using MAPI,
Or you can simply create one ContactItem and set Exchange address which you
are getting from mailItem.SenderEmailAddress
to "Email1Address" property of ContactItem, After saving this Outlook will
resolve smtp address for you. Now you will have smtp address in
"Email1DisplayName" Propery of ContactItem.
And dont forget to delete this created ContactItem (from deleted Items
also).

Thanks
Ashutosh

"Nagaraj" wrote in message
...
Hi,

I want to retrieve smtp address of sender in outlook 2003 plugin
development

I used
mailItem.SenderEmailAddress
but it is not giving any value

In 2007 I got the value by
mailItem.SendUsingAccount.SmtpAddress;

How to get the same value in outlook 2003?

Thanks

Nagaraj

--
Nagaraj Tadipatri



Ads