Processing
Forms With Mail
Form Mail Processing
Form mail processing can be done with several different cgi
programs. For your convenience we have installed a generic version
of formmail.cgi on the system. This script
is a universal parser and mail sender that will work on all forms
that are properly constructed. The generic version's return page
simply states "Thank You - your request submission has been
received and will be processed the next business day from (date)".
If you wish a more detailed return page with the name of your
company and links back to your pages, you will need to install
your own version in your own cgi-bin. The new formmail script can be installed directly from your control panel by clicking on the formmail Icon. The path to the new formmail will be /cgi-bin/formmail/formmail.cgi
The only requirements of formmail.cgi are these 4 items
in your form.html:
The proper method (form method=post action=);
The recipient tag (who will receive the e-mail);
The subject tag (the subject of the e-mail is required by the e-mail server
software
);
The email tag (who sent the e-mail). Most people use this so they know who
sent the
e-mail.
If you don't care, put your e-mail addresss in here, otherwise the e-mail
server will ne
ver process your form.
And of course you must finish the form with your
input butt
ons.
Working Example
<FORM METHOD=POST ACTION="http://yourdomain.com/cgi-bin/formmail/formmail.cgi">
<input type=hidden name="recipient" value="you@yourdomain.com">
<input type=hidden name="subject" value="put your subject
here">
<input type=hidden name="return_link_url" value="URL YOU WANT TO SEND THEM TO AFTER FILLING OUT THE FORM"">
<input type=hidden name="return_link_title" value="What you want the link to say here">
For more information on setting up your forms to work off
formmail, go to Matt's
Script Archive, you will find lots of information and a great
FAQ there for formmail and all his other scripts, as well as
the scripts themselves!