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 » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How to get current user name and email address



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old October 23rd 07, 09:05 AM posted to microsoft.public.outlook.program_addins
Ivan
external usenet poster
 
Posts: 39
Default How to get current user name and email address

I retrieve current user name and email (from account settings) using
spIMAPISession-QueryIdentity(..);
and reading properties PR_EMAIL_ADDRESS and PR_DISPLAY_NAME.
But in OL XP I cannot get these values.
Are there any ways to get the values in OL XP?
Ads
  #2  
Old October 23rd 07, 09:24 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default How to get current user name and email address

Use the IOlkAccountManager interface and retrieve the default e-mail
account.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Ivan" wrote in message
...
I retrieve current user name and email (from account settings) using
spIMAPISession-QueryIdentity(..);
and reading properties PR_EMAIL_ADDRESS and PR_DISPLAY_NAME.
But in OL XP I cannot get these values.
Are there any ways to get the values in OL XP?



  #3  
Old October 25th 07, 12:18 PM posted to microsoft.public.outlook.program_addins
Ivan
external usenet poster
 
Posts: 39
Default How to get current user name and email address

Thanks!
 




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
Can't get SMTP address of contact that shares email address of an Exchange user Jeff Outlook and VBA 14 January 15th 09 12:50 AM
How to get current user email address by CDO KAKA Add-ins for Outlook 3 September 24th 07 04:16 PM
Outlook is not installed for current user Ian Hobday Outlook - Installation 1 November 13th 06 05:56 PM
Email address of the current user [email protected] Add-ins for Outlook 3 September 8th 06 06:44 AM
Outlook Multi-email acct should default "From address" to current SB Outlook - Installation 7 July 31st 06 05:57 PM


All times are GMT +1. The time now is 08:34 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.