FormMail is a generic WWW form to e-mail gateway, which will parse the results of any form and send them to the specified user. This script has many formatting and operational options, most of which can be specified through the form, meaning you don't need any programming knowledge or multiple scripts for multiple forms. This also makes FormMail the perfect system-wide solution for allowing users form-based user feedback capabilities without the risks of allowing freedom of CGI access. - Create a form that you would like the contents mailed to some address. The form should include the following field (at the very least):
- recipient = specifies who mail is sent to
Other optional fields can also be used to enhance the operation of FormMail for you site, for example: Several other fields are supported, please see the README document for a complete presentation of the supported fields. For example, the HTML source for your form may look like this: All variables are in RED and must be replaced with your entries <form method="POST" action="cgi-bin/mailer/formmail.pl">
<input type="hidden" name="recipient" value="email@yourdomain">
<input type="hidden" name="subject" value="Order Request">
<input type="hidden" name="required" value="realname,username,phone">
Please Enter Your Name:<br>
<input name="realname" size="40">
<br>
Please Enter Your Email Address:<br>
<input name="username" size="40">
<br>
Please Enter Your Phone Number:<br>
<input name="phone" size="40">
<br>
Add Additional Fields Here
<input type="submit" value="Submit">
<input type="reset" value="Reset">
</form> This is what your output would be (this example form will do nothing)
- subject = specify the subject included in e-mail sent back to you
- email = allow the user to specify a return e-mail address
- realname = allow the user to input their real name
- redirect = URL of page to redirect to instead of echoing form input
- required = list of field names that are required input (comma delimited)
|
|
|