473,385 Members | 2,274 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Current User's e-mail address

Does anyone know how to get the e-mail address of the current user logged into Outlook?
Nov 20 '05 #1
4 9537
RDI
I don't know the answer, but I'm sure the fine folks over at the Outlook VBA
NG will. I'm going to cross-post this reply so they get this message.

I'd like to know the answer as well.

--

RDI

(remove the exclamation from the email address)

"Jerry" <je********@genmills.com> wrote in message
news:16**********************************@microsof t.com...
Does anyone know how to get the e-mail address of the current user logged

into Outlook?
Nov 20 '05 #2
Jerry,
You can use the NameSpace.CurrentUser property to find the information.

However! this will cause a security warning (to help prevent viruses) to the
user.

The following site provides a plethora of articles on using Outlook from
..NET.

http://www.microeye.com/resources/res_outlookvsnet.htm

Note, when using Outlook from .NET its best to have the PIA for Outlook
installed, which the above site discusses.

Hope this helps
Jay

"Jerry" <je********@genmills.com> wrote in message
news:16**********************************@microsof t.com...
Does anyone know how to get the e-mail address of the current user logged

into Outlook?
Nov 20 '05 #3
NameSpace.CurrentUser.Address, but that will fire the security prompts
for secure versions of Outlook. You can also get it using Redemption
code (www.dimastr.com/redemption).

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginners Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
"RDI" <RDI!@!WriteMe.com> wrote in message
news:ul**************@tk2msftngp13.phx.gbl...
I don't know the answer, but I'm sure the fine folks over at the Outlook VBA NG will. I'm going to cross-post this reply so they get this message.
I'd like to know the answer as well.

--

RDI

(remove the exclamation from the email address)

"Jerry" <je********@genmills.com> wrote in message
news:16**********************************@microsof t.com...
Does anyone know how to get the e-mail address of the current user
logged into Outlook?

Nov 20 '05 #4
RDI
Just found this page. It shows how to get the default email address.
Without requireing Outlook.
http://www.mvps.org/vbnet/code/reg/regdefemail.htm

--

RDI

(remove the exclamation from the email address)

"Jerry" <je********@genmills.com> wrote in message
news:16**********************************@microsof t.com...
Does anyone know how to get the e-mail address of the current user logged

into Outlook?
Nov 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Christopher Weaver | last post by:
I want to set a value in a specific field in the current row of a DataSet. This seems like the most basic thing to do but I can't find the syntax for identifying the current row. IOW, I can do...
2
by: Jesper Stocholm | last post by:
I have implemented role-based security within my ASP.Net application. However, it seems the role is not passed to the authentication ticket I create. I want to use it to display/hide some...
4
by: Dan Bart | last post by:
I am using an application which is a modification of IBuySpy Portal. It is using Forms authentication. Users login and their name is added to Context Then I use: ...
10
by: kiran_s_rao | last post by:
I have a serious issue that seems to be intermittent with User.Identity.Name. In an environment where about 100+ users are logging on to a site with forms authentication, calling ...
8
by: Mark White | last post by:
Hey everyone I'm having a great deal of problems finding this information through google and yahoo, so I turn to you on this. I have a Windows app running on XP. I am able to caputre the...
4
by: Leszek | last post by:
Hello! I have my webpage (ASP) in domain (IIS 6.0). I need to make a popup with fullname of current user. How can I do this? Maybe someone have any examples? Thanks!
0
by: davidr | last post by:
Hi, I been stuck on this for a week or more. So please help! I have a menu were a user can click a button and a user control is loaded into the page. A problem occurs when trying to load a...
4
by: Doogie | last post by:
Hi, I am using HttpContext.Current.User.Identity.Name to get a user id from a web application. I then use that as part of a name of a cookie I'm writing. 30 minutes later I do a refresh of this...
9
by: Alex | last post by:
Get the Name and Phone Number of the Current Windows User in a .NET Application I am writing a simple .NET (C#) application. It needs to "automatic" get the Name (last, first) and phone number...
13
by: bproddu | last post by:
Hi, I'm using Forms authentication for my web app. I've a custom Principal class that I would like to set to the HttpContext.Current.User after the Membership.ValidateUser() passes. I'm able to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.