What's wrong with this short ASP code

mapydroccarty

New Member
Please help me figure out what's wrong with this SHORT ASP code for email form.I am trying to implement a contact form in. The files are already in the server, but when I test it to see if it sends the message to my email address, I don't see anything. Could someone please tell me where I went wrong?\[code\]<html><head><title>form to email script</title></head><body><div align="center"><form method="POST" action="form_ac.asp" name="form1"><table width="75%" border="0" cellspacing="0" cellpadding="0"><tr> <td>name:</td><td colspan="2"> <input type="text" name="name"></td></tr><tr> <td>email:</td><td colspan="2"> <input type="text" name="email"></td></tr><tr> <td>message:</td><td colspan="2"> <textarea name="message" cols="40" rows="5"></textarea></td></tr><tr><td> </td><td colspan="2"><input type="submit" name="Submit" value="http://stackoverflow.com/questions/12031389/Submit"><input type="reset" name="Reset" value="http://stackoverflow.com/questions/12031389/Reset"></td></tr></table></form></div></body></html>Call this page form_ac.asp in VBScipt (the ac is short for acquire as it will be receiving values)
Code:
<%@ Language="VBscript" %><% Option Explicit %><html><head><title>Message Sent</title></head><body><%'declare the variables that will receive the values 'receive the values sent from the form and assign them to variables'note that request.form("name") will receive the value entered into the textfield'called name, and so with email and messageDim name, email, message, NewMailObjname=request.form("name")email=request.form("email")message=request.form("message")'create the mail object and send the detailsSet NewMailObj=Server.CreateObject("CDONTS.N
 
Back
Top