OK here's a contact form for your website. The form is pretty basic, has a space for the person's name, their e-mail address, their reason for making contact and a box for their comments.
The form will send mail to the e-mail address you specify in contact_mail.asp and will also, at the visitor's option send him or her a copy of the form too with a little message attached. When you receive themessage, the e-mail address given by your visitor is set as the reply address.
The form also checks to make sure that the person enters a name of at least one character long and that they enter a valid e-mail address.
Here is the zip file which contains three files. DOWNLOAD IT HERE
contact.asp (this is the contact form) contact_mail.asp (this is the script that processes the form and sends the mail) contact_thanks.asp (this is the page the visitor sees after the messages have been sent). contact_error.asp (The page you hope noone ever sees - In case there's an error while processing the mail)
You should edit contact_mail.asp in a standard text editor (like notepad) and enter your e-mail address and your mailserver (mail.yourdomain.co.za) in the places indicated in the file.
You should also customize contact_thanks.asp to fit in with the look and feel of your site. |