This article applies to Linux Dedicated Servers.
This article explains how to use the free CGI script named mailform.
Mailform is a free CGI script which you can install onto your account via the CGI Scripts page. The script takes the input of a form and converts it to an e-mail.
To use the script after install, reference it in the action tag of your HTML form as illustrated below:
<form method="post" action="/cgi-bin/mailform.pl">
This code calls the script when the web page visitor clicks the Submit button on your HTML form. Simply add fields to your form to yield the desired functions. For full usage information please see http://nms-cgi.sourceforge.net/formmail_compat-3.14c1/README
Any fields which you include that are not listed above will be mailed to the recipient in the body of the email.
Important: You must create a file in your public_html directory (the default when you log in via ftp) called .ht_mailform.txt which contains a list of allowed recipients separated by new-lines. If the recipient specified in the form is not in this file, the email will be rejected.