Cold someone tell me what's go wrong with this code:
this file name is "form.htm"
This file name is somescript.asp
' Check if it's a postback. This is only really useful if you
' have the form submit to itself (since you only want to send
' the email when the user hits submit, not when the page first loads
if (Request.Form("Postback") = "true") then
set objEmail = Server.CreateObject("CDONTS.NewMail")
objEmail.To = "[email protected]
objEmail.From = Request.Form("txtEmail")
objEmail.Body = "Message From " & Request.Form("txtName") & ": " & Request.Form("txtMessage")
set objEmail = nothing
My plan for this code is to let user type in some info at "form.htm" and press the submit butn, once press, it will sent the info to my email.
The above sample code was provided by one of the member in programheavens. I had use this code for testing purpose. But the problem is I didn't receive the mail after pressing the submit btn. Do I miss out something in th code or my format is wrong, please correct me ..............appreciated !
Could anyone help me to spot any error, cos I am new to html & asp.
You are allow to use this code for testing purpose, just cut and paste, I had cut & paste the full code at above.