Setting Up Spam Safe Email Forms
Web sites that host with eclecTechs using a domain name (i.e. www.yourdomain.com) can set up spam safe email forms by following the directions below.
Note: Users that don't have a domain (i.e. www.valinet.com/~user)
or require the secure server (i.e. https://secure.valinet.com/~user) for
submissions cannot use
this version of FormMail. Intead, you will need to download the latest
FormMail from Matt's Script
Archive or NMS from SourceForge and set these
up in your own cgi-bin using the instructions provided with the script. If you
choose to use FormMail, it must be version 1.92 or later and the string "form"
cannot appear anywhere in the filename.
As always, our Web Development staff is available to assist you with
securing your forms.
- Create a text file called FormMail.ph. It must contain the following text:
@recipient_addresses =
('emailaddress1', 'emailaddress2');
1;
List each of the email addresses you would like to receive a copy of the form - look at an example here. Make sure there is a blank line at the very end of the file.
- Upload this FormMail.ph file to your cgi-bin, make sure it is uploaded in ASCII.
- After the file has been transferred, left click once on FormMail.ph in the Remote System window. Once the file is selected, right click on it for a menu of options.
- Select chmod (UNIX) and set the permissions to 755 (check off all boxes except the Write option in both the Group and Other columns.
- You may now create your HTML form. Your form tag should look like this:
<form action=/cgi-common/FormMail.pl method=post>
- Remember, if you are updating an old FormMail, you must disable or
delete the insecure version. To disable, you must chmod the permissions to 644
(make sure Execute is not checked in any column). The safest way, however, is
simply to delete the old file.
More instructions about using this version of FormMail can be found here.
Sample Form:
Sample Form HTML:
<form action=/cgi-common/FormMail.pl method=post>
<input type=hidden name=recipient value='support@valinet.com'>
<input type=text name=msg value='No spam can be sent from here'>
<input type=submit value=test>
</form>
|