Discussion Locked

Capture email address

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have a form that users fill out and when they click to submit the form, the details are then emailed to a specific address.
We currently have the form capturing the username of the person that filled out the form by how they are logged onto the network.
What I would like to know is, instead of capturing their username, could I get their email address instead or both.
The code is ran with ASP and currently it's listed as "strUser = UCase(Request.Servervariables("LOGON_USER"))".
I'm not the one who generated the code to capture this, so i'm not sure if getting the user's email address is possible or not, but if anyone knows how to do so under ASP I would like to know.
Thank you
MT

2 replies

by nikki96

No, it isn't possible. It is not one of the server variables. (Request.Servervariables("LOGON_USER"))

Now, if you have something to map username to address (we have an LDAP server that can do this), you could have another query to grab the e-mail address and pop it in there.

But not with just ASP and the defined header info, no.

This is all the variables you can get.
http://www.4guysfromrolla.com/webtech/092298-3.shtml

by latum

Actually you may be able to go around this, if you know the format that is used to assign email addresses which in most cases is USERNAME + @ + DOMAIN NAME you can concatenate the username variable with the @domainname.com or whatever domain that you use to generate email addresses he..he..

hope this helps

This discussion is closed to new replies.