471,354 Members | 1,466 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Aquiring Email Address

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.

Jan 12 '06 #1
6 1205
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.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

<ki*************@consultant.com> wrote in message
news:11*********************@g14g2000cwa.googlegro ups.com...
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.

Jan 12 '06 #2
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

Jan 12 '06 #3
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 Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

<ki*************@consultant.com> wrote in message
news:11**********************@g47g2000cwa.googlegr oups.com...
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

Jan 12 '06 #4
Nicholas Paldino [.NET/C# MVP] wrote:
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
Jan 12 '06 #5

<ki*************@consultant.com> wrote in message
news:11**********************@g47g2000cwa.googlegr oups.com...
| 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.
Jan 12 '06 #6
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
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

<ki*************@consultant.com> wrote in message
news:11**********************@g47g2000cwa.googlegr oups.com...
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

Jan 12 '06 #7

This discussion thread is closed

Replies have been disabled for this discussion.

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.