Mythic Beasts

Formmail

We use formmail.pl from Matt's Script Archive with some specific modifications for our use and some antispam features.

In order to set your form up to use this script please set the action of your form to:
/cgi-bin/formmail.pl
and set the METHOD to POST (you can use GET if you want to but I would recommend against it since the user will see all the fields in the URL).

Note that to prevent the script being used by third parties and to get it to work at all for you, you MUST include the exact text of the recipient field in a file named "formmail_recipients" in your home directory. It should have one line per recipient field that you want to allow. For instance if you have:

<input type="hidden" name="recipient" value="foobar@mydomain.com">

then you must put foobar@mydomain.com in formmail_recipients.
If you are sending to more than one address from one form you must put exactly the same value in the file. e.g. for:

<input type="hidden" name="recipient" value="foobar@mydomain.com, baz@mydomain.com">

then you must put foobar@mydomain.com, baz@mydomain.com in formmail_recipients.

To see what fields you can and must include on your form please see the README

Copyright © 2000-2008 Mythic Beasts Ltd. All Rights Reserved.