This program is used to write letters to various public officials. In all, it is a fairly simplistic CGI program, but you will need to know how the pieces fit together.

First, a test URL is: http://mordred.armoredpenguin.com/letters/letters.cgi.

Next, much of the output is controlled by webc, a simple HTML preprocessor that I've written and used for a number of similar jobs. This frees the HTML from the program so that different people can concentrate on their strengths.

The CGI program (letter.cgi) can be installed in any directory you can run CGI programs from. This can be a cgi-bin directory, or possibly a user directory. Under this directory are two main directories, the Template directory and the Letters directory.

The Template directory is used for files which guide the process which are not typically changed. There are some files which are included in others, and set the tone for the entire site. These files end in *.wh.

The next directory is the Letters directory. This contains letters and their control files, as well as a list of email addresses. Look at the comments in the files for the information which goes in the files. The letters end in *.txt, and the control files end in *.ctl.

The process for adding a new letter is to create an appropriate *.txt file in the Letters directory in standard ASCII. Format it as you wish. Remember that the user may change or add text to this message. The second step is to create the corrosponding *.ctl file. Copy the sample, and change the fields as appropriate in your copy. Now check the letter writing page to see that your new letter shows up. Then you're done.

You can pick up a copy of the entire archive for version v0.15. This contains all of the files mentioned on this page.


If you have any question about this package, send mail to The Administrator.

This application written by Dave Regan. You can see other programs at http://mordred.armoredpenguin.com/.