Aquiring Email Address

  • Thread starter Thread starter kimberly.walker
  • Start date Start date
K

kimberly.walker

Im currently trying to create this web application that allows the user
to place a help desk ticket. The problem that Im having is that
instead of having the user place their email address in a text box I
wanted to be able to get the users email address by code. Is this
possible? Ive tired using the active directory but have encounter
problems, was wondering if there is another way of getting the users
email address maybe sometype of code getting it from Outlook.
 
I wouldn't even bother. It's a minor thing to have them type in the
address, and getting it on the client side (which is what you would have to
do, not on the server side), would require too much setup.

You would first have to get the user to lower their security
requirements to run your code so you can snoop around their computer.

On top of that, you would have to write code for three/four different
sources:

Outlook
Outlook Express
Thunderbird (is this what it is called)
Active Directory

How would you know which email to use if there are multiple addresses?

In the end, it is better to let the user decide.
 
Hi Nicholas
Thanks for the response. Yes your right it would be easier to just let
the user type in their email address but is there anyway to automate
this. All users are currently using Outlook 2003 is there any way
based off the users ID from logging in off the computer I can pull up
their email address from the Exchange Server?
Thanks
 
There is, but the security requirements make this REALLY prohibitive,
since you can't run your own code by default. It would be more difficult to
get them to actually make the client adjustments than to have them type in
their email address.
 
Nicholas said:
I wouldn't even bother. It's a minor thing to have them type in the
address, and getting it on the client side (which is what you would have to
do, not on the server side), would require too much setup.

You would first have to get the user to lower their security
requirements to run your code so you can snoop around their computer.

On top of that, you would have to write code for three/four different
sources:

Outlook
Outlook Express
Thunderbird (is this what it is called)
Active Directory

In addition, don't forget people like me who don't even _have_ a
"proper" email address. (mine is sdcoonce at gmail.com)

Scott
 
| Hi Nicholas
| Thanks for the response. Yes your right it would be easier to just let
| the user type in their email address but is there anyway to automate
| this. All users are currently using Outlook 2003 is there any way
| based off the users ID from logging in off the computer I can pull up
| their email address from the Exchange Server?
| Thanks
|

Sure there is, all you need to do is use DirectoryServices to query the
users mail address from the AD, note that this requires your Exchange server
to be integrated with the AD, else you have to bind to the Exchange
directory.

Willy.
 
Hi,

Do your users have the same username part of the email like the windows
login?
You could use that to autogenerate the email address.

Otherwise , I'm sure that all of them share the same domain , so the textbox
could only include the username part of the email
 
Back
Top