ASP contact form for use on GoDaddy sites
The form described below works, but if the user’s email address is from hotmail, yahoo or gmail, GoDaddy will still block submission of the form. So here is the solution:
Make the following changes.
- You will no longer need “formproc.asp”. GoDaddy will not release the code for their working form but you can use theirs.
- In contact.htm, replace everything within the FORM tags with the following HTML code. This sends the user’s data to GoDaddy’s ASP form processor, _gdForm/webformmailer.asp
<form action="_gdForm/webformmailer.asp" method="post" id="form"> <input type="hidden" name="subject" value="Submission" /> <input type="hidden" name="redirect" value="thankyou.htm" /> <table cellpadding="0" cellspacing="0" summary="Contact form"> <tr> <th><label for="name">* Full Name: </label></th> <td><input type="text" name="name" id="name" size="25" maxlength="255" /></td> </tr> <tr> <th><label for="email">* Email Address: </label></th> <td><input type="text" name="email" id="email" size="25" maxlength="255" /></td> </tr> <tr> <th><label for="subject">Subject: </label></th> <td><input type="text" name="subject" id="subject" size="38" maxlength="75" /></td> </tr> <tr> <th><label for="message">Message: </label></th> <td><textarea cols="30" rows="6" name="message" id="message"></textarea></td> </tr> <tr> <td colspan="2" id="button"><input type="submit" value="Send Email" /></td> </tr> </table> </form>
- Next, create a “thankyou.htm” page, which can contain any message you want. This is going to be the page they get redirected to after the form has been processed.
GoDaddy made some changes to their smtp email server settings such that old ASP mail forms no longer work.
Continue reading