UUNET MailForm Readme


The UUNET MailForm consists of three or four files: The form page (HTML), a script (cgi) that produces a Mail from the inputs and for a final page, which is called up afterwards. The fourth file is still possible as another acknowledgement page. The configuration is made primarily over the form page.
In the script only the Mailprogram, the Perl path, and the DOCUMENTROOT directory of the server running on the server machine, has to be adjusted. (on WWW servers operated by UUNET the script is already accordingly configured and installed, so that you do not have to consider those further down written notes about request and configuration.)

The form
Contents of the Mail result from the form. For each input field there is an entry in the Mail. The field name in the Mail is identically to that field names in the form. Additionally some generic fields must be indicated, with which the GCI SCRIPT is configured.

The acknowledgement page (optional)
The acknowledgement page is called, if on the form page the field were set
_confirm_. Contents of this field are the file name of this page.
The page must be a normal HTML page with special substitute symbols, which are then replaced to variables' contents by the CGI script. A substitute symbol has the form @@Variablename. Please note that also on the acknowledgement page the GCI-call (with <FORM>) and the other control fields for the feedback-CGI must be available (_myemail_, _subject_, etc.); only _confirm_ control field may not be available again, of course.

Files
The package consists of the following files:
  • feedback (Perl script)
  • Mailform.html (example form page)
  • MailformOK.html (example acknowledgement page)
  • MailformDoc.html (this documentation)

The directories
Files must be situated in the following directories on your server:
  • feedback -> CGI directory
    (e.g. /home/www/cgi/)
  • Mailform.html -> Document directory
    (e.g. /home/www/data/)
  • MailformOK.html ->Document directory
    (e.g. /home/www/data/)

Requests
The following software must be installed on your server:
  • Perl (Version >= 5.001)
  • CGI.pm (CGI Perl Library ab Version 1.53)

Configuration
The following things are to be configured:
  • The Perl path
    In line 1 of the script Mailform the path has to be indicated where Perl can be found (version 5.001 or higher), e.g.

    #!/usr/local/bin/perl

    (on UNIX machines to determine with: whereis perl)

  • The used Mailprogram (e.g. sendmail)
    This must be done in the script Mailform in the following paragraph (quite above in the script):
     
            
    ##
    ## Config
    ##
    
    $MAILER='/usr/sbin/sendmail -t';
    Please enter here the complete path! (on UNIX maschines to determine with: whereis sendmail)

  • The DOCUMENTROOT directory of the server
    This must be done in the script Mailform in the following paragraph (quite above in the script):
            
    ##
    ## Config
    ##
    
    $DOCUMENTROOT='/home/www/data/';
    Please enter here the complete path!