View Single Post
  #4  
Old July 4th 09, 11:04 AM posted to microsoft.public.outlook.program_addins
Nagaraj
external usenet poster
 
Posts: 22
Default Get SMTP address of sender in outlook 2003

Thanks for your information. The problem is solved by the following line

sender = Application.Session.CurrentUser.Address


--
Nagaraj Tadipatri


"Ken Slovak - [MVP - Outlook]" wrote:

That is not necessarily true, none of the entries from my GAL that also have
contacts show the SMTP address in the display name. To actually get the SMTP
address see http://www.outlookcode.com/d/code/ge...htm#redemption
and http://www.cdolive.com/cdo5.htm#EMailAddressOfSender for examples.


--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Ashutosh Jogdande" wrote in message
...
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