![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
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 |
#2
|
|||
|
|||
![]()
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 |
#3
|
|||
|
|||
![]()
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 |
#4
|
|||
|
|||
![]()
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 |
#5
|
|||
|
|||
![]()
That will give you the current user's address, but it has nothing to do with
the sender address of any particular message in your inbox. -- Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool - "Nagaraj" wrote in message ... 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 |
#6
|
|||
|
|||
![]()
And it also won't necessarily give you an SMTP address. If CurrentUser is an
Exchange DN that's what you'll get, not an SMTP address. -- 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 "Dmitry Streblechenko" wrote in message ... That will give you the current user's address, but it has nothing to do with the sender address of any particular message in your inbox. -- Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool - "Nagaraj" wrote in message ... Thanks for your information. The problem is solved by the following line sender = Application.Session.CurrentUser.Address -- Nagaraj Tadipatri |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Reading SMTP address from Exchange Sender mail address | VebKol | Outlook and VBA | 4 | March 6th 09 05:08 PM |
Can't get SMTP address of contact that shares email address of an Exchange user | Jeff | Outlook and VBA | 14 | January 15th 09 01:50 AM |
Retrieve recipients smtp address using Redemption + Outlook 2003 | CoolSanil | Outlook - Using Forms | 2 | December 18th 08 06:26 PM |
How to get sender address in PST file without Outlook installed. | KAKA | Add-ins for Outlook | 11 | November 20th 07 07:21 AM |
Add all sender from my emails to an address book in outlook | [email protected] | Outlook - Using Contacts | 3 | December 21st 06 02:33 PM |