eclecTechs Internet Access + Web Hosting Web Site Development Technical Support About Our Company Custom Programming Classes and Workshops Web Mail
-------------------------
 
Search: Web   eclecTechs™
----------------------

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.

  1. 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.

  2. Upload this FormMail.ph file to your cgi-bin, make sure it is uploaded in ASCII.

  3. 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.

  4. Select chmod (UNIX) and set the permissions to 755 (check off all boxes except the Write option in both the Group and Other columns.

  5. You may now create your HTML form. Your form tag should look like this:
    <form action=/cgi-common/FormMail.pl method=post>
    

  6. 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>

eclecTechs™
35 State Street
Northampton, MA 01060

413.584.8600
800.471.4638
Fax 413.584.0562

info@eclectechs.com
www.eclectechs.com

All Contents Copyright © eclecTechs™, All Rights Reserved