<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%> <% Response.Expires = 0 %> <% if request.Form("email") = "" then response.redirect("index.asp") end if %> <% Set JMail = Server.CreateObject("JMail.SMTPMail") ' This is my local SMTP server JMail.ServerAddress = "mailrelay.wildgoosehosting.com" ' This is me.... JMail.Sender = "webmaster@ctidx.com" JMail.Subject = "Remington Forest Website Inquiry - "&Request.Form("name") uniqueID = cstr(month(date))&cstr(day(date))&cstr(year(date))&cstr(hour(time))&cstr(minute(time))&cstr(second(time)) rdate=date rtime=time strBody = rdate & " " & rtime & vbCrLf& vbCrLf strBody = strBody & "You have received an inquiry from the Remington Forest website"& vbCrLf& vbCrLf strBody = strBody & "Below is the information provided with this inquiry." & vbCrLf & vbCrLf strBody = strBody & "Contact Name: "&Request.Form("name")& vbCrLf strBody = strBody & "Email Address: "&Request.Form("email")& vbCrLf strBody = strBody & "Phone Number: "&Request.Form("phone")& vbCrLf strBody = strBody & "Message: "&Request.Form("message")& vbCrLf strBody = strBody &"------------------------------------------------------------------"& vbCrLf JMail.AddRecipient "jmscyclist@aol.com" JMail.Body = strBody JMail.AddHeader "Originating-IP", Request.ServerVariables("REMOTE_ADDR") ' Send it... JMail.Execute Response.redirect "thanks.htm" %>