A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - General Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Reading windows user's email address



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old May 30th 08, 09:18 PM posted to microsoft.public.outlook,microsoft.public.outlook.program_vba
John[_11_]
external usenet poster
 
Posts: 83
Default Reading windows user's email address

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  
Old May 30th 08, 11:38 PM posted to microsoft.public.outlook,microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Reading windows user's email address

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  
Old May 30th 08, 11:53 PM posted to microsoft.public.outlook,microsoft.public.outlook.program_vba
John[_11_]
external usenet poster
 
Posts: 83
Default Reading windows user's email address

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  
Old May 31st 08, 12:32 AM posted to microsoft.public.outlook,microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Reading windows user's email address

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  
Old May 31st 08, 08:56 PM posted to microsoft.public.outlook,microsoft.public.outlook.program_vba
John[_11_]
external usenet poster
 
Posts: 83
Default Reading windows user's email address

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  
Old June 2nd 08, 05:47 PM posted to microsoft.public.outlook,microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Reading windows user's email address

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
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


All times are GMT +1. The time now is 07:02 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.