473,686 Members | 3,168 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1267
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.co m

<ki************ *@consultant.co m> wrote in message
news:11******** *************@g 14g2000cwa.goog legroups.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.co m

<ki************ *@consultant.co m> wrote in message
news:11******** **************@ g47g2000cwa.goo glegroups.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.co m> wrote in message
news:11******** **************@ g47g2000cwa.goo glegroups.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 DirectoryServic es 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.co m> wrote in message
news:11******** **************@ g47g2000cwa.goo glegroups.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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
3014
by: dmiller23462 | last post by:
So here's my problem.....I need to set up different email distributions based on which option in the following Select form has been chosen....For instance if "Putaway" is chosen it needs to email User1@here.whatever and User4@here.whatever but if "Loaded" is chosen it needs to email User2@here.whatever and User3@here.whatever, etc, etc... I'm aware that the only thing that really needs to change is the "Mail.AddAddress" line (at least...
117
11830
by: Steevo | last post by:
Any suggestions as to the best programs for cloaking email addresses? Many thanks -- Steevo
8
2500
by: needhelp | last post by:
Hi there, I really need some help, everything I've tried, all I've found, doesn't seem to work. I have lost an email address which is very important to me. I really need to contact that person asap. I'm sure to remember that it begin with "leslie". Is any of you out there able to run a powerful email extractor, script or anything else that will provide me a complete list of such addresses? Doesn't matter how big it will be, it's really...
1
3130
by: saravanatmm | last post by:
I need javascript code for validate the email address. Email address field cannot allowed the capital letters, special characters except '@' symbol. But can allowed the small letters, numeric numbers. Now i use this script for validate the email address. But it allows the cpital letters otherwise its working correctly. SCRIPT FUNCTION ************************************************
0
9061
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8783
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6448
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5804
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4320
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4538
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2960
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2212
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1943
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.