Where does the IP address come from?
Try this modified version for debugging purposes:
Dim rqEmail, rqSubject, rqBody, interface
rqEmail = Request.Form("email")
rqSubject = Request.Form("subject")
rqBody = Request.Form("body")
rqInterface = Request.Form("interface")
rqBody = rqBody & vbCRLF & vbCRLF & vbCRLF & "<site1>"
RESPONSE.WRITE "EMAIL: " & rqEmail & "<hr>"
RESPONSE.WRITE "SUBJECT: " & rsSubject & "<hr>"
RESPONSE.WRITE "BODY: " & rqBody & "<hr>"
Dim objMail
Set objMail = CreateObject("CDONTS.NewMail")
objMail.From = rqEmail
objMail.To = "(e-mail address removed)"
objMail.Subject = rqSubject
objMail.MailFormat = 1
objMail.BodyFormat = 1
objMail.Body = rqBody
'' On error resume next THIS IS COMMENTED OUT, SINCE YOU'RE DEBUGGING...
objMail.Send
Set objMail = nothing
RESPONSE.END
If rqInterface = "2" Then
Response.Redirect("/contactus/thanks_f.asp")
Else
Response.Redirect("/contactus/thanks_e.asp")
End If
What's rq?
Whats the diference between CDO and CDONTS anyway?
CDONTS = old technology
CDO = new technology
See here:
http://www.aspfaq.com/show.asp?id=2026
And if you miss the link, also see here:
http://support.microsoft.com/?kbid=810702
Ray at work