![]() |
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
Outlook 2003 connected with exchange server. A user is logged in to the client pc. Is it possible to programmatically get the user's email address that is set on the 'Email Addresses' tab of the exchange server? Thanks Regards |
#2
|
|||
|
|||
![]()
Using which API and programming language?
-- Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool - "John" wrote in message ... Hi Outlook 2003 connected with exchange server. A user is logged in to the client pc. Is it possible to programmatically get the user's email address that is set on the 'Email Addresses' tab of the exchange server? Thanks Regards |
#3
|
|||
|
|||
![]()
vb.net if possible. if not vba or an outlook add-in as a last resort.
Thanks Regards "Dmitry Streblechenko" wrote in message ... Using which API and programming language? -- Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool - "John" wrote in message ... Hi Outlook 2003 connected with exchange server. A user is logged in to the client pc. Is it possible to programmatically get the user's email address that is set on the 'Email Addresses' tab of the exchange server? Thanks Regards |
#4
|
|||
|
|||
![]()
If you are using VB.Net, Extended MAPI is not an option, so you are left
either with AD (read the proxyAddresses AD attribute) or CDO 1.21 or Redemption. In Redemption the following script will do the job (assuming Application points ot an instance of the Outlook.Application object): PR_EMS_AB_PROXY_ADDRESSES = &H800F101E set Session = CreateObject("Redemption.RDOSession") Session.MAPIOBJECT = Application.Session.MAPIOBJECT set addressEntry = session.CurrentUser ProxyAddresses = addressEntry.Fields(PR_EMS_AB_PROXY_ADDRESSES) For i = LBound(ProxyAddresses) To UBound(ProxyAddresses) Debug.Print(ProxyAddresses(i)) Next -- Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool - "John" wrote in message ... vb.net if possible. if not vba or an outlook add-in as a last resort. Thanks Regards "Dmitry Streblechenko" wrote in message ... Using which API and programming language? -- Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool - "John" wrote in message ... Hi Outlook 2003 connected with exchange server. A user is logged in to the client pc. Is it possible to programmatically get the user's email address that is set on the 'Email Addresses' tab of the exchange server? Thanks Regards |
#5
|
|||
|
|||
![]()
Hi Dmitry
Many Thanks Would appreciate if I can have a CDO 1.21 example too. Thanks Regards "Dmitry Streblechenko" wrote in message ... If you are using VB.Net, Extended MAPI is not an option, so you are left either with AD (read the proxyAddresses AD attribute) or CDO 1.21 or Redemption. In Redemption the following script will do the job (assuming Application points ot an instance of the Outlook.Application object): PR_EMS_AB_PROXY_ADDRESSES = &H800F101E set Session = CreateObject("Redemption.RDOSession") Session.MAPIOBJECT = Application.Session.MAPIOBJECT set addressEntry = session.CurrentUser ProxyAddresses = addressEntry.Fields(PR_EMS_AB_PROXY_ADDRESSES) For i = LBound(ProxyAddresses) To UBound(ProxyAddresses) Debug.Print(ProxyAddresses(i)) Next -- Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool - "John" wrote in message ... vb.net if possible. if not vba or an outlook add-in as a last resort. Thanks Regards "Dmitry Streblechenko" wrote in message ... Using which API and programming language? -- Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool - "John" wrote in message ... Hi Outlook 2003 connected with exchange server. A user is logged in to the client pc. Is it possible to programmatically get the user's email address that is set on the 'Email Addresses' tab of the exchange server? Thanks Regards |
#6
|
|||
|
|||
![]()
It is really the same - Session.CurrentUser.Fields
-- Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool - "John" wrote in message ... Hi Dmitry Many Thanks Would appreciate if I can have a CDO 1.21 example too. Thanks Regards "Dmitry Streblechenko" wrote in message ... If you are using VB.Net, Extended MAPI is not an option, so you are left either with AD (read the proxyAddresses AD attribute) or CDO 1.21 or Redemption. In Redemption the following script will do the job (assuming Application points ot an instance of the Outlook.Application object): PR_EMS_AB_PROXY_ADDRESSES = &H800F101E set Session = CreateObject("Redemption.RDOSession") Session.MAPIOBJECT = Application.Session.MAPIOBJECT set addressEntry = session.CurrentUser ProxyAddresses = addressEntry.Fields(PR_EMS_AB_PROXY_ADDRESSES) For i = LBound(ProxyAddresses) To UBound(ProxyAddresses) Debug.Print(ProxyAddresses(i)) Next -- Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool - "John" wrote in message ... vb.net if possible. if not vba or an outlook add-in as a last resort. Thanks Regards "Dmitry Streblechenko" wrote in message ... Using which API and programming language? -- Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool - "John" wrote in message ... Hi Outlook 2003 connected with exchange server. A user is logged in to the client pc. Is it possible to programmatically get the user's email address that is set on the 'Email Addresses' tab of the exchange server? Thanks Regards |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Get current user's email address | Chris[_7_] | Outlook and VBA | 6 | February 27th 08 02:51 PM |
Over 50 empty IE windows open when I click a link to an email address | Essex Hammer | Outlook Express | 3 | May 29th 06 08:17 PM |
Currently logged in user's email | John | Outlook - General Queries | 1 | April 1st 06 05:29 AM |
Currently logged in user's email | John | Outlook and VBA | 1 | April 1st 06 05:29 AM |
Even with transform addition, user's don't get Outlook Address | Sue Mosher [MVP-Outlook] | Outlook - Using Contacts | 0 | January 20th 06 05:42 PM |