Click to See Complete Forum and Search --> : ASP E- mailer


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

lmf232s
06-04-2004, 01:19 PM
I cant tell you why exactly but i do know with CDONTS that i can not send email to my hotmail account but my outlook account at work accepts them. It may have to do with something on your server.

Sorry I cant be of more help

WoG
06-04-2004, 01:24 PM
I thought that might be the problem too, but when I tested this account, I had my Exchange server account in the field instead of the hotmail...

I'm stumped.