% If request.form("send") <> "" Then dim check1, check2 check1 = Cint(InStr(1, (request.form("address")), "Content-Type", vbTextCompare)) check2 = Cint(InStr(1, (request.form("address")), "Content-Type")) If check1 = 0 AND check2 = 0 Then set msg = Server.CreateOBject("JMail.Message") msg.Logging = false msg.From = "webmaster@aclandinternet.com" msg.FromName = "Steffisartwork Website" msg.AddRecipient "info@steffisartwork.com" msg.Subject = "Steffisartwork: Website Enquiry" msg.appendText "======================================================== " & VbCrLf msg.appendText "Steffisartwork Website Enquiry " & VbCrLf msg.appendText "======================================================== " & VbCrLf & VbCrLf msg.appendText "Submitted on: " & now & VbCrLf & VbCrLf msg.appendtext "Name: " & request.form("name") & VbCrLf & VbCrLf msg.appendtext "E-mail address: " & request.form("email") & VbCrLf & VbCrLf msg.appendtext "Telephone: "& request.form("tel") & VbCrLf & VbCrLf msg.appendtext "Mobile: "& request.form("mobile") & VbCrLf & VbCrLf msg.appendtext "Interested in: "& request.form("art4sale") & VbCrLf & VbCrLf msg.appendtext "Enquiry: " & VbCrLf & VbCrLf msg.appendtext request.form("query") & VbCrLf & VbCrLf msg.appendText "======================================================== " & VbCrLf msg.appendtext "User Information: " & VbCrLf msg.appendtext "IP address: " & request.ServerVariables("REMOTE_ADDR") & " " & VbCrLf msg.appendText "======================================================== " & VbCrLf msg.Send ("localhost") set msg = nothing response.Redirect("contact.asp?page=1") Else set msg = Server.CreateOBject("JMail.Message") msg.Logging = false msg.From = "webmaster@aclandinternet.com" msg.FromName = "Steffisartwork Website" 'msg.AddRecipient "info@steffisartwork.com" msg.AddRecipient "info@steffisartwork.com" msg.Subject = "Steffisartwork: Website Abuse" msg.appendText "======================================================== " & VbCrLf msg.appendText "Steffisartwork Website Abuse " & VbCrLf msg.appendText "======================================================== " & VbCrLf & VbCrLf msg.appendText "Submitted on: " & now & VbCrLf & VbCrLf msg.appendtext "Name: " & request.form("name") & VbCrLf & VbCrLf msg.appendtext "E-mail address: " & request.form("email") & VbCrLf & VbCrLf msg.appendtext "Telephone: "& request.form("tel") & VbCrLf & VbCrLf msg.appendtext "Mobile: "& request.form("mobile") & VbCrLf & VbCrLf msg.appendtext "Interested in: "& request.form("art4sale") & VbCrLf & VbCrLf msg.appendtext "Enquiry: " & VbCrLf & VbCrLf msg.appendtext request.form("query") & VbCrLf & VbCrLf msg.appendText "======================================================== " & VbCrLf msg.appendtext "User Information: " & VbCrLf msg.appendtext "IP address: " & request.ServerVariables("REMOTE_ADDR") & " " & VbCrLf msg.appendText "======================================================== " & VbCrLf msg.Send ("localhost") set msg = nothing response.Redirect("default.asp") End if End if %>
|
||||||||||||||||||||||||||||||||||||||||||||||||||