|
From your shell, install the application
using the install-cgi utility:
$ mkdir ~/www/my-mailer
$ cd ~/www/my-mailer
$ install-cgi mail.fcgi
The HTML source files are the *.htm files in the mail.fcgi.conf
directory, and the main templates are the *.m4 files in the
mail.fcgi.conf/m4 subdirectory.
If you are familiar with XSLT, you can add stylesheets
in mail.fcgi.conf/xsl as well.
Feel free to modify these files using your favorite text editor,
but make sure to run make when you're done (as the final HTML will
run through m4 and xsltproc).
Do not edit the *.html.* files, as they are generated automatically
for various languages and character encodings.
$ cd mail.fcgi.conf
$ $EDITOR *.htm
$ make
To insert new information fields (whose contents will be appended to the
e-mail), simply create an HTML form and give it some name starting with
"f_". For example, if you wanted to add an "Order number" field,
you would insert something like the following in default.htm:
Order number: <input type=text name="f_OrderNo">
You can use the same method to insert new "X-Foo" fields in the
mail headers. This can be very convenient if the recipient address is
using automatic e-mail classification:
Send to department:
<select name="x_Department">
<option value="Technical Department">
<option value="Billing Department">
<option value="Department of Apocalyptic Affairs">
</select>
|