web hosting

Domain Search
Pre-installed CGI Scripts
How To Use Built In Form Mail Script
   
 

Note that the email field will be what the form uses as the "From" address when mailing the form results to you. The form action for the fmail.pl script is: "/cgi-bin/fmail.pl"
Method is: post

There are 4  hidden fields that the fmail.pl script needs: recipient, subject, required, and redirect The syntax is below:

<input type="hidden" name="recipient" value="yourname@your-actual-domain.com">
<input type="hidden" name="subject" value="Inquiry Form">
<input type="hidden" name="redirect" value="http://your-actual-domain.com/thankyou.html">

<input type="hidden" name="required" value="email">

In designing your form, make sure that the field where you ask for their email address is named "email" (all lower case with no dashes). The syntax is:
<input name="email" value size="50">
 

If you'd like the form to email the results to more than one email address, the syntax would be:
<input type="hidden" name="recipient" value="you@your-actual-domain.com,someone@your-actual-domain.com">

Click here, to view the form mail script syntax.

If the form page is a secure page, make sure to also have a secure URL as the "redirect". Otherwise you will get a security error.


Side Note On Email Harvesting Robots
 

Many spammers will use automated software to crawl through your site looking for email addresses to add to their database. They will either send you spam themselves or sell their database of email addresses to other spammers. Direct links to email addresses will be harvested. And  recipient fields only visible in the HTML of the page will also be harvested:
<input type="hidden" name="recipient" value="yourname@your-actual-domain.com">

The way around this is to not have direct links to email addresses on your site but instead have links to forms pages where your shoppers can submit their queries. Secondly, on the forms pages that you create, omit the line below:
<input type="hidden" name="recipient" value="yourname@your-actual-domain.com">

When you omit the recipient field on your page, the fmail.pl script will not know where to send the form results. So you will need to:

1.  Download (in ASCII mode not binary mode) the fmail.pl script from your site using FTP software. 

2. Open the fmail.pl script on your local computer using something like WordPad.

3. Find the line below: (it will of course show your actual domain name not the your-actual-domain.com) @allow_mail_to = qw(your-actual-domain.com localhost);

4. Change that line to:
 @allow_mail_to = qw(secretemailaddress@your-actual-domain.com your-actual-domain.com localhost);

You are leaving the your domain name in the field but before it, you are adding a default email address that the fmail.pl script will use if your page does not pass it a value for the recipient.

5. Re-upload (in ASCII mode not binary mode)  the fmail.pl script to the server, into your cgi-bin directory.

6. Now test your form.

 

Test Form
 

Use the following form to see how it works, once you click on the "Submit" button you will be taken to the "Thank You page" [redirect].
Click here, to view the form mail script syntax for the sample form below.

   
 
Standard 30 character field
Email address field
Comments Block
Radio Buttons Option 1
Option 2
Option 3
   
 
  
     
   
   
   
   

Visit our online store demo. Purchase merchandise online with our secure checkout!


View the shopping cart software management features from the Shopping Cart Administration Area.
Use "bqdemo" as password.


Login to Design Studio
Forgot your password?




Click here to e-mail us • For pre-sales questions call: 1.705.542.6684
For technical support call: • SSMBI, Inc. • 170 Chambers Ave, Sault Ste. Marie, ON P6B 1Z2