Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Contact Us
Online Help
Domain Status
Man Pages

Virtual Servers

Topology Map

Server Agreement
Year 2038

USA Flag



PGP FormMail

bullet Introduction
FormMail is a generic WWW form to e-mail gateway, which will parse the results of any form and send them to the specified user. This CGI 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 CGIs for multiple forms. This also makes FormMail the perfect system-wide solution for allowing users form-based user feedback capabilities without the risks of allowing freedom of CGI access.

PGP (Pretty Good Privacy), originally developed by Phil Zimmerman, is a high security cryptographic software application for MSDOS, UNIX, VAX/VMS, and other computers. PGP allows people to exchange files or messages with privacy, authentication, and convenience.


bullet Installation
Connect to your Virtual Private Servers via Telnet or SSH and do the following.
  1. Install PGP 5.0.

  2. Install the PGP FormMail software. Issue the commands that match your Virtual Private Servers O/S.

    These commands install two files, and pgp5formmail.README.txt, into your ~/www/cgi-bin directory.


bullet Configuration
Set the referer information such that only your server will have privileges to use the PGP FormMail CGI. Near the top of the file you will find the following line:

Substitute your domain name and Virtual Private Servers IP address for the values YOUR-DOMAIN.NAME and YOUR.IP.ADD.RESS respectively.


bullet Usage
Create a form that you would like the contents mailed to some address. The form should include the following fields (at the very least):
  • recipient = specifies who mail is sent to
  • pgpuserid = specifies your PGP user ID

Other optional fields can also be used to enhance the operation of PGP 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 pgp5formmail.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" 
<input type="hidden" name="pgpuserid" 
<input type="hidden" name="subject" 
       value="Order Request">
<input type="hidden" name="required" 
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">

YOUR-USER-ID is the user ID for your public key. If your user ID contains characters that could be misinterpreted by a web browser, such as '<' and '>', you will want to replace these characters with the proper escape sequences. For example if your user ID is:

John Q. Smith <>

Represent the user ID with the following string (note the &lt; and &gt; escape sequences):

John Q. Smith &lt;;

Toll Free 1-866-GSP-4400 • 1-301-464-9363 •
Copyright © 1994-2016 GSP Services, Inc.