[thelist] ASP and form question

Sharon F. Malone sfmalo at 24caratdesign.com
Fri Jul 5 15:03:01 CDT 2002


Did an ASP file written to send form info to me (as a test) with a redirect to a confirmation page. However, I've filled out the form twice to test it ... and have not received either email. The confirmation page works fine tho.

I notice that the "To" of the objMail.To is blue in my text editor as is the "nothing" after setObjMail. This usually indicates something isn't right but I don't know what/why.

Any idea why it isn't working?

<%
Dim objMail
set objMail = Server.CreateObject("CDONTS.NewMail")
objMail.From = Request.Form("Order_Info_Form")
objMail.Subject = "Message from The Chocolate Foundry"
objMail.To = "sfmalo at 24caratdesign.com"
objMail.Body  = "Sent by: " & Request.Form("name") & vbCrlf & vbCrlf & Request.Form("message")
objMail.Send
Response.Redirect("confirm.html")
set objMail = nothing
%>

<form name="Order_Info_Form" action="process.asp" method="post" enctype="text/plain" onSubmit="return Order_Info_Form_Validator(this)"><input type="hidden" name="order-orig" value="sfmalo at 24caratdesign.com">
<input type="hidden" name="order-bcc" value="cheftrain at yahoo.com">
---------------------------------------------------------------------------
Sharon F. Malone
"web design and Internet writing services"
http://www.24caratdesign.com
sfmalo at 24caratdesign.com



More information about the thelist mailing list