Contributed Programs

formmail.pl

Last Updated: January 21, 2000


  1. Installation


Installation

To install the formmail.pl script, telnet to your Virtual Server and do the following:

  1. Untar the formmail.pl script located in the /usr/local/contrib area into your cgi-bin:
      % cd (this will put you in your home directory)
      % tar -xvf /usr/local/contrib/formmail.tar
    
      % chmod 755 www/cgi-bin/formmail.pl

    This will install two files, formmail.pl and formmail.README.txt, into your ~/www/cgi-bin directory and make the FormMail script an executable file.

  2. Create a form that you would like the contents mailed to some address. The form should include the following 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="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>
    
  3. Set the referer information such that only your server will have the privileges to use the formmail.pl script. Near the top of the formmail.pl script you will find the following line:
@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. All rights reserved. All brand names and product names used on these web pages are trademarks, or trade names of their respective holders.