H
HartSA
I have an ASP page that I created, nothing special, it is just a form that
takes input from the user and it sends the results to a pre-specified
mailbox.
Here is my dilema, hopefully someone can assist.
The input from the users goes into the e-mail no problem, it sends fine. I
have the below code that grabs IP address and UserInformation. How do I
pass this information in the e-mail as well?
<%
response.write "<div align=center>"
response.write "<TABLE BORDER=1 CELLSPACING=0 CELLPADDING=0>" & vbcrlf
response.write "<TR>" & vbcrlf
response.write "<TD align=center BGCOLOR=#990033 WIDTH=200>" & vbcrlf
response.write("<FONT COLOR=WHITE><STRONG>IP Address")
response.write "</TD>" & vbcrlf
response.write "<TD align=center BGCOLOR=#990033 WIDTH=200>" & vbcrlf
response.write("<FONT COLOR=WHITE><STRONG>Domain\Network Login")
response.write "</TD>" & vbcrlf
response.write "</TR>" & vbcrlf
IP_address = Request.ServerVariables("REMOTE_ADDR")
LogonUser = Request.ServerVariables("REMOTE_USER")
response.write "<TR>" & vbcrlf
response.write "<TD align=center width=200>" & vbcrlf
response.write(IP_address)
response.write "</TD>" & vbcrlf
response.write "<TD align=center width=200>" & vbcrlf
response.write(LogonUser)
response.write "</TD>" & vbcrlf
response.write "</TR>" & vbcrlf
response.write "</TABLE>" & vbcrlf
response.write "</div>"
%>
I want to pass IP_address and LogonUser.
Thanks in advance for any assistance you might be able to provide. The rest
of the code is straight HTML.
takes input from the user and it sends the results to a pre-specified
mailbox.
Here is my dilema, hopefully someone can assist.
The input from the users goes into the e-mail no problem, it sends fine. I
have the below code that grabs IP address and UserInformation. How do I
pass this information in the e-mail as well?
<%
response.write "<div align=center>"
response.write "<TABLE BORDER=1 CELLSPACING=0 CELLPADDING=0>" & vbcrlf
response.write "<TR>" & vbcrlf
response.write "<TD align=center BGCOLOR=#990033 WIDTH=200>" & vbcrlf
response.write("<FONT COLOR=WHITE><STRONG>IP Address")
response.write "</TD>" & vbcrlf
response.write "<TD align=center BGCOLOR=#990033 WIDTH=200>" & vbcrlf
response.write("<FONT COLOR=WHITE><STRONG>Domain\Network Login")
response.write "</TD>" & vbcrlf
response.write "</TR>" & vbcrlf
IP_address = Request.ServerVariables("REMOTE_ADDR")
LogonUser = Request.ServerVariables("REMOTE_USER")
response.write "<TR>" & vbcrlf
response.write "<TD align=center width=200>" & vbcrlf
response.write(IP_address)
response.write "</TD>" & vbcrlf
response.write "<TD align=center width=200>" & vbcrlf
response.write(LogonUser)
response.write "</TD>" & vbcrlf
response.write "</TR>" & vbcrlf
response.write "</TABLE>" & vbcrlf
response.write "</div>"
%>
I want to pass IP_address and LogonUser.
Thanks in advance for any assistance you might be able to provide. The rest
of the code is straight HTML.