Home All Groups Group Topic Archive Search About

Currently logged in user's email

Author
1 Apr 2006 4:03 AM
John
Hi

We can get the current logged in user's name but is it also possible to get
the default email form outlook of the currently logged-in user as well? The
reason for this is that I need to email the users warnings from time to
time. As the system may be running by different users on different pcs, I
need to pick up the email of the currently logged-in user to send him/her
the email.

Thanks

Regards

Author
1 Apr 2006 12:24 PM
Cor Ligthert [MVP]
John,

>
> We can get the current logged in user's name but is it also possible to
> get the default email form outlook of the currently logged-in user as
> well? The reason for this is that I need to email the users warnings from
> time to time. As the system may be running by different users on different
> pcs, I need to pick up the email of the currently logged-in user to send
> him/her the email.
>
I hope not while it is in my opinion hacking if you do that.

If you need that, than you can ask that (in your program) to the user, and
he can decide to give you that or not.

Just my thought,

Cor
Author
1 Apr 2006 2:42 PM
John
I need the message to end up in user's outlook for record as there is some
information in there. The user can also forward this information if/when
needed.

Regards

Show quoteHide quote
"Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> wrote in message
news:O2zk7bYVGHA.4956@TK2MSFTNGP09.phx.gbl...
> John,
>
>>
>> We can get the current logged in user's name but is it also possible to
>> get the default email form outlook of the currently logged-in user as
>> well? The reason for this is that I need to email the users warnings from
>> time to time. As the system may be running by different users on
>> different pcs, I need to pick up the email of the currently logged-in
>> user to send him/her the email.
>>
> I hope not while it is in my opinion hacking if you do that.
>
> If you need that, than you can ask that (in your program) to the user, and
> he can decide to give you that or not.
>
> Just my thought,
>
> Cor
>
Author
1 Apr 2006 3:49 PM
John
PS: How is sending email to the user who is currently using the app hacking?
This is how the organization wants it to be so the user can double check
what entries he/she has done from the reminders that have come in their
inbox. This is a way to keep a check on what entries were made and also for
user's protection so he/she can provide these as proof.

Regards

Show quoteHide quote
"Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> wrote in message
news:O2zk7bYVGHA.4956@TK2MSFTNGP09.phx.gbl...
> John,
>
>>
>> We can get the current logged in user's name but is it also possible to
>> get the default email form outlook of the currently logged-in user as
>> well? The reason for this is that I need to email the users warnings from
>> time to time. As the system may be running by different users on
>> different pcs, I need to pick up the email of the currently logged-in
>> user to send him/her the email.
>>
> I hope not while it is in my opinion hacking if you do that.
>
> If you need that, than you can ask that (in your program) to the user, and
> he can decide to give you that or not.
>
> Just my thought,
>
> Cor
>
Author
1 Apr 2006 4:10 PM
Cor Ligthert [MVP]
John,

Sending mail is not hacking.

To make it possible to get an emailadres from a system is opening ways to
hack.

You are not the only one who does what you say.
The only thing is that the user gives than his email adres to you.
You don't get it from the system.

Even Microsoft does that, do you think that it would be very much work from
them to get it from the system as they wanted that.

As mostly the goods have to suffer from the bads.

Cor

Show quoteHide quote
"John" <John@nospam.infovis.co.uk> schreef in bericht
news:%23HK3UPaVGHA.5332@tk2msftngp13.phx.gbl...
> PS: How is sending email to the user who is currently using the app
> hacking? This is how the organization wants it to be so the user can
> double check what entries he/she has done from the reminders that have
> come in their inbox. This is a way to keep a check on what entries were
> made and also for user's protection so he/she can provide these as proof.
>
> Regards
>
> "Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> wrote in message
> news:O2zk7bYVGHA.4956@TK2MSFTNGP09.phx.gbl...
>> John,
>>
>>>
>>> We can get the current logged in user's name but is it also possible to
>>> get the default email form outlook of the currently logged-in user as
>>> well? The reason for this is that I need to email the users warnings
>>> from time to time. As the system may be running by different users on
>>> different pcs, I need to pick up the email of the currently logged-in
>>> user to send him/her the email.
>>>
>> I hope not while it is in my opinion hacking if you do that.
>>
>> If you need that, than you can ask that (in your program) to the user,
>> and he can decide to give you that or not.
>>
>> Just my thought,
>>
>> Cor
>>
>
>
Author
1 Apr 2006 4:12 PM
Jim Hughes
Check out the DirectoryServices namespace

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/dotnetadsearch.asp

Show quoteHide quote
"John" <John@nospam.infovis.co.uk> wrote in message
news:%23HK3UPaVGHA.5332@tk2msftngp13.phx.gbl...
> PS: How is sending email to the user who is currently using the app
> hacking? This is how the organization wants it to be so the user can
> double check what entries he/she has done from the reminders that have
> come in their inbox. This is a way to keep a check on what entries were
> made and also for user's protection so he/she can provide these as proof.
>
> Regards
>
> "Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> wrote in message
> news:O2zk7bYVGHA.4956@TK2MSFTNGP09.phx.gbl...
>> John,
>>
>>>
>>> We can get the current logged in user's name but is it also possible to
>>> get the default email form outlook of the currently logged-in user as
>>> well? The reason for this is that I need to email the users warnings
>>> from time to time. As the system may be running by different users on
>>> different pcs, I need to pick up the email of the currently logged-in
>>> user to send him/her the email.
>>>
>> I hope not while it is in my opinion hacking if you do that.
>>
>> If you need that, than you can ask that (in your program) to the user,
>> and he can decide to give you that or not.
>>
>> Just my thought,
>>
>> Cor
>>
>
>
Author
1 Apr 2006 4:43 PM
John
Bit complicated for me.

Show quoteHide quote
"Jim Hughes" <NOSPAMJ3033@Hotmail.com> wrote in message
news:OKJJYcaVGHA.4424@TK2MSFTNGP10.phx.gbl...
> Check out the DirectoryServices namespace
>
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/dotnetadsearch.asp
>
> "John" <John@nospam.infovis.co.uk> wrote in message
> news:%23HK3UPaVGHA.5332@tk2msftngp13.phx.gbl...
>> PS: How is sending email to the user who is currently using the app
>> hacking? This is how the organization wants it to be so the user can
>> double check what entries he/she has done from the reminders that have
>> come in their inbox. This is a way to keep a check on what entries were
>> made and also for user's protection so he/she can provide these as proof.
>>
>> Regards
>>
>> "Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> wrote in message
>> news:O2zk7bYVGHA.4956@TK2MSFTNGP09.phx.gbl...
>>> John,
>>>
>>>>
>>>> We can get the current logged in user's name but is it also possible to
>>>> get the default email form outlook of the currently logged-in user as
>>>> well? The reason for this is that I need to email the users warnings
>>>> from time to time. As the system may be running by different users on
>>>> different pcs, I need to pick up the email of the currently logged-in
>>>> user to send him/her the email.
>>>>
>>> I hope not while it is in my opinion hacking if you do that.
>>>
>>> If you need that, than you can ask that (in your program) to the user,
>>> and he can decide to give you that or not.
>>>
>>> Just my thought,
>>>
>>> Cor
>>>
>>
>>
>
>
Author
1 Apr 2006 4:45 PM
John
PS: In outlook I can get it using Application.Session.CurrentUser.Address.

Regards

Show quoteHide quote
"Jim Hughes" <NOSPAMJ3033@Hotmail.com> wrote in message
news:OKJJYcaVGHA.4424@TK2MSFTNGP10.phx.gbl...
> Check out the DirectoryServices namespace
>
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/dotnetadsearch.asp
>
> "John" <John@nospam.infovis.co.uk> wrote in message
> news:%23HK3UPaVGHA.5332@tk2msftngp13.phx.gbl...
>> PS: How is sending email to the user who is currently using the app
>> hacking? This is how the organization wants it to be so the user can
>> double check what entries he/she has done from the reminders that have
>> come in their inbox. This is a way to keep a check on what entries were
>> made and also for user's protection so he/she can provide these as proof.
>>
>> Regards
>>
>> "Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> wrote in message
>> news:O2zk7bYVGHA.4956@TK2MSFTNGP09.phx.gbl...
>>> John,
>>>
>>>>
>>>> We can get the current logged in user's name but is it also possible to
>>>> get the default email form outlook of the currently logged-in user as
>>>> well? The reason for this is that I need to email the users warnings
>>>> from time to time. As the system may be running by different users on
>>>> different pcs, I need to pick up the email of the currently logged-in
>>>> user to send him/her the email.
>>>>
>>> I hope not while it is in my opinion hacking if you do that.
>>>
>>> If you need that, than you can ask that (in your program) to the user,
>>> and he can decide to give you that or not.
>>>
>>> Just my thought,
>>>
>>> Cor
>>>
>>
>>
>
>