Last Updated: January 21, 2000
To install PGP FormMail v1.6, telnet or SSH to your Virtual Server and do the following:
% cd (this will put you in your home directory) % tar -xvf /usr/local/contrib/pgp5formmail.tarThis will install the two files, pgp5formmail.pl and pgp5formmail.README.txt, into your ~/www/cgi-bin directory.
Other optional fields can also be used to enhance the operation of FormMail for you site, for example:
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/formmail.pl"> <input type="hidden" name="recipient" value="order@yourdomain.com"> <input type="hidden" name="pgpuserid" value="your_userid"> <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"> <p> Please Enter Your Email Address:<br> <input name="username" size="40"> <p> Please Enter Your Phone Number:<br> <input name="phone" size="40"> <p> . . . <input type="submit" value="Submit"> <input type="reset" value="Reset"> </form>Where your_userid 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 were:
represent the user ID with the following string (note the < and > escape sequences):
Substitute your domain name and Virtual Server IP address for the values YOUR-DOMAIN.NAME and YOUR.IP.ADDR.ESS respectively.
One way to modify the pgp5formmail.pl 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.
The pgpformmail.pl script is an excellent way to transfer mail from your virtual server to a remote mail box in a secure format. For example, use the pgpformmail.pl script to send sensitive information such as credit card numbers from your Secure Virtual Server to your remote e-mail box without worrying about a third-party tampering with the information. To install the pgpformmail.pl script, telnet to your Virtual Server and do the following:
% cd (this will put you in your home directory) % tar -xvf /usr/local/contrib/pgpformmail.tar
This will install the two files, pgpformmail.pl and pgpformmail.README.txt, into your ~/www/cgi-bin directory.
For example, the HTML source for your form may look like this:
<form method="POST" action="/cgi-bin/pgpformmail.pl"> <input type="hidden" name="pgpuserid" value="your_userid"> <input type="hidden" name="recipient" value="order@yourdomain.com"> <input type="hidden" name="subject" value="Order Request"> Please Enter Your Name:<br> <input name="realname" size="40"> <p> Please Enter Your Email Address:<br> <input name="username" size="40"> <p> Please Enter The $$$ Amount:<br> <input name="amount" size="40"> <p> . . . <input type="submit" value="Submit"> <input type="reset" value="Reset"> </form>Where your_userid 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 were:
represent the user ID with the following string (note the < and > escape sequences):
@referers=('YOUR-DOMAIN.NAME','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.
Copyright © 1996-2000, Last Modified: 21 January 2000A Little Technology Shoppe LLC (ALTS.NET)®. All rights reserved. All brand names and product names used on these web pages are trademarks, or trade names of their respective holders.