Derrr... How do I make a web form that will email me?

adambyte

Registered
Hello. I'm not a complete dumb when it comes to the web. I've studied a little in HTML books and pried apart code that I make using Claris Home Page. But THIS is beyond me. Instead of leaving my email address at a mailto link, bare for the world to see ( and therefore spam me), how do I make a web page where you just fill in text, click "submit," and it's sent as an email to an address? Does it involve CGI, ASP, or some other weird scripting? If so, do AOL or Yahoo web hosting services support this scripting? Thanks in advance.
 
adam,

Check out your web hosting service, they already may have set up the cgi needed, a very popular one is FormMail. Here's some code from your end.

Formmail is a very easy to use form processor. Simply place the following on any page after entering your domain.

<FORM METHOD=POST ACTION="http://yourdomain.com/cgi-sys/FormMail.cgi">
<input type="hidden" name="recipient" value="sales@yourdomain.com">
<input type="hidden" name="subject" value="Order">
<input type="hidden" name="return_link_url" value="http://yourdomain.com/">
<input type="hidden" name="return_link_title" value="Back to Main Page">
Alternatively to the last two:
<input type="hidden" name="redirect" value="http://www.yourdomain.com/thankyoupage.html">

Be sure to replace yourdomain with your real domain name.
 
I use Bravenet; among many other tools, they offer a mailer to send me the contents of a form in an email, and it will make people confirm the email before sending it. You can see it in action on my website, on the Contact page. Try it... I won't mind. ;)
 
Back
Top