Blue Reef Technical Support Blue Reef Virtual Server Reseller ProgramInstallation instructions, manuals, how-tos, and more!About Blue Reef Consulting, Inc.

About Blue Reef Virtual ServersEcommerce Solutions for your Virtual ServerSearch the Blue Reef Virtual Server web site
Return to Blue Reef Virtual Servers Home Page
Order virtual servers, software, computers, and more!
Return to Blue Reef Main Home Page
Site Map
CGi Library of scripts to help you do business with your Virtual Serve and to have a better web site.

Blue Reef Virtual Servers
Virtual Server Support
Virtual Server Addons
CGI Library for use with a Virtual Server
CGI Library Overview
PGP FormMail
Simple Visitor Counter
Count 2.5 Visitor Counter
User Information (Finger)
Password-protect files with User Authentication
URL Redirection
Tool to Check Domain Name Availability
Lookup details for domain records
Domain Record Modification Tools
Excite Search Engine for your site
SWISH-E search engine for your site
JavaScript Library
Java Library
Request help using our Problem Tracking System
Order a Blue Reef Virtual Server now!

NMS FormMail

NMS FormMail will parse the results of any web form and send them to the specified user. This script has many formatting and operational options, most of which can be specified through the form, meaning you don't need any programming knowledge or multiple scripts for multiple forms. This also makes FormMail the perfect system-wide solution for allowing form-based user feedback without the risks of giving your hosts freedom of CGI access.

Installing FormMail
To install the script and its README file on your Virtual Server, Telnet or SSH to your Virtual Server and untar the FormMail tar file onto your Virtual Server:
    % vinstall formmail
This will install the two files, and formmail.README.txt, into your ~/www/cgi-bin directory.

Using FormMail
  1. Create a form that you would like the contents mailed to some address. The form should include the following field (at the very least):

    • recipient = specifies who mail is sent to

    Other optional fields can also be used to enhance the operation of FormMail for you site, for example:

    • subject= specify the subject included in e-mail sent back to you
    • email= allow the user to specify a return e-mail address
    • realname= allow the user to input their real name
    • redirect= URL of page to redirect to instead of echoing form input
    • required= list of field names that are required input (comma delimited)

    Several other fields are supported, please see the README document for a complete presentation of the supported fields.

    For example, the HTML source for your form may look like this:

    <form method="POST" action="/cgi-bin/">

    <input type="hidden" name="recipient" value="">

    <input type="hidden" name="subject" value="Order Request">

    <input type="hidden" name="required" value="realname,username,phone">

    Please Enter Your Name:<br>
    <input name="realname" size="40">

    Please Enter Your Email Address:<Br>
    <input name="username" size="40">

    Please Enter Your Phone Number:<Br>

    <input name="phone" size="40">

    . . . <input type="submit" value="Submit"> <input type="reset" value="Reset">

  2. Set the referer* information such that only your server will have privileges to use the script. Near the top of the script you will find the following line:

    @referers = ('','YOUR.IP.ADDR.ESS');

    Substitute your domain name and Virtual Server IP address for the values YOUR-DOMAIN.NAME and YOUR.IP.ADDR.ESS respectively.

  3. Indicate the path to perl:

    #!/usr/bin/perl -wT

  4. Indicate the path to sendmail:

    /usr/sbin/sendmail -oi -t
One way to modify the script is have it "autorespond" to the client filling out the form. You can do this by simply uncommenting out the call to "autorespond" located near the top of the script. The autorespond function is placed at the end of the file and can be modified to suit your needs.

*In the context of web servers, this is not a misspelling of "referrer". While the meaning is the same, it should be spelled "referer" when in use with web servers.

Installing CGI Scripts

CGI Security Issues

CGI Scriptorium

About Perl

Perl Modules

Server Side Includes

Mime Types

About Apache Server


CGI Programming 101
CGI Programming 101


CGI Programming With Perl
CGI Programming With Perl


Web Security:
A Step-by-Step Reference Guide


Official Guide to Programming With
Official Guide to Programming With


Javascript Bible
Javascript Bible,
3rd Edition


Core Web Programming
Core Web Programming


Apache: Web Server Directives Guidebook Apache:
Web Server Directives Guidebook

$15.95 logo
Search for :
Enter keywords...