Form Configuration

The action of your form needs to point towards this script (obviously), and the method must be POST or GET in capital letters. Version 1.92 of FormMail offers many new ways to code your form to tailor the resulting HTML page and the way the script performs.

Below is a list of form fields you can use and how to implement them. Here’s a sample HTML codes to create a form.

Line1:   <form method=post action=”/cgi-bin/”>
Line2:   <input type=”hidden” name=”subject” value=”Feedback Form”>
Line3:   <input type=”hidden” name=”recipient” value=””>
Line4:   <input type=”hidden” name=”return_link_title” value=”back to your website name.”>
Line5:   <input type=”hidden” name=”return_link_url”value=””>
Line6:   <input type=”hidden” name=”required” value=”Name,email”>
Line7:   <input type=hidden name=”env_report” value=”REMOTE_HOST,HTTP_USER_AGENT”>
Line8:   </form>


Line1:  This calls the script
Line2:  Here we define the subject of the email that the form will send
Line3:  Here we define the email address the form will send to
Line4:  Here we set the return link title
Line5:  Here we set the URL of the return link
Line6:  We can set certain fields to be required eg fields : Name & Email is required.
Line7:  If you wish to include the visitors IP address then include this line.
Line8:  End of Form.


Necessary Form Fields

There is only one form field that you must have in your form, for FormMail to work correctly. This is the recipient field.

Field: recipient
This form field allows you to specify to whom you wish for your form results to be mailed. Most likely you will want to configure this option as a hidden form field with a value equal to that of your e-mail address.

Syntax: <input type=hidden name=”recipient” value=””>


You need to edit the following lines in

Line1:   @referers = (‘’,’’);
Line2:   @recipients = (‘’);


Line1:   Edit “” and “” to your domain name.
Line2:   Edit “” to your email address. (Same as the recipient value)

Note : If you have multiple forms , you can set multiple recipients as well.
@recipients = (‘’, ‘’);


How to obtain Windows Form Mail?
Download the file “fm.txt” by clicking here. (Right-click and Save as “”)
Upload the “” into your cgi-bin folder in ASCII mode.

Note : Remember to edit the file first before uploading. Your site may already have pre-installed.

Related Article