|
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 deliver.pl in the main cgi-bin on all machines. 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. A copy of the script is
located in the cgi-scripts directory in your www directory.
The only requirements of deliver.pl 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
<METHOD=POST ACTION="http://yourdomain.com/cgi-bin/deliver.pl">
<type=hidden name="recipient" value="you@yourdomain.com">
<type=hidden name="subject" value="put your
subject here">
The default feedback.htm form contains everything
you need to get a workin g formmail up and running.
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! |