WoG
06-04-2004, 01:11 PM
I am having a heck of a problem getting this script to email correctly. A f
orm generates all the values, and the script sends off a confirmation email-
except I don't get any of the confirmation emails. I don't get any errors
either. I've tried multiple email addresses (in network, out of network, e
tc.)
Here is the code:
set objMail = Server.CreateObject("CDONTS.NewMail")
objMail.To = "jesusfreaks18@hotmail.com"
objMail.From = Request.Form("strEmail")
objMail.CC = ""
objMail.Subject = "Individual Visit Request"
objMail.Body = "Name: " & Request.Form("strFName") & " " & Request.Form(
"strLName") & chr(13) & _
"Email: " & Request.Form("strEmail") & chr(13) & _
"Street: " & Request.Form("strStreetAddr") & chr(13) & _
"City: " & Request.Form("strCity") & chr(13) & _
"State: " & Request.Form("strState") & chr(13) & _
"Zip: " & Request.Form("strZip") & chr(13) & _
"Phone: " & Request.Form("strPhone") & chr(13) & _
"Major 1: " & Request.Form("strMajor1") & chr(13) & _
"Major 2: " & Request.Form("strMajor2") & chr(13) & _
"High School and Grad Year: " & Request.Form("strHS") & " - " & Request.Form("Gradyr") & chr(13) & _
"College (if applicable): " & Request.Form("strCollege") & chr(13) &_
"Appointments Requested: " & appointments & chr(13) & _
"Visit Date Requested: " & Request.Form("VisDate") & chr(13) & _
"Visit Time Preference: " & Request.Form("VisTime") & chr(13)
objMail.Send
set objMail = nothing
%>
Anybody know why this won't mail?
Thanks
Jesse
orm generates all the values, and the script sends off a confirmation email-
except I don't get any of the confirmation emails. I don't get any errors
either. I've tried multiple email addresses (in network, out of network, e
tc.)
Here is the code:
set objMail = Server.CreateObject("CDONTS.NewMail")
objMail.To = "jesusfreaks18@hotmail.com"
objMail.From = Request.Form("strEmail")
objMail.CC = ""
objMail.Subject = "Individual Visit Request"
objMail.Body = "Name: " & Request.Form("strFName") & " " & Request.Form(
"strLName") & chr(13) & _
"Email: " & Request.Form("strEmail") & chr(13) & _
"Street: " & Request.Form("strStreetAddr") & chr(13) & _
"City: " & Request.Form("strCity") & chr(13) & _
"State: " & Request.Form("strState") & chr(13) & _
"Zip: " & Request.Form("strZip") & chr(13) & _
"Phone: " & Request.Form("strPhone") & chr(13) & _
"Major 1: " & Request.Form("strMajor1") & chr(13) & _
"Major 2: " & Request.Form("strMajor2") & chr(13) & _
"High School and Grad Year: " & Request.Form("strHS") & " - " & Request.Form("Gradyr") & chr(13) & _
"College (if applicable): " & Request.Form("strCollege") & chr(13) &_
"Appointments Requested: " & appointments & chr(13) & _
"Visit Date Requested: " & Request.Form("VisDate") & chr(13) & _
"Visit Time Preference: " & Request.Form("VisTime") & chr(13)
objMail.Send
set objMail = nothing
%>
Anybody know why this won't mail?
Thanks
Jesse