|
From your shell, install the application like so:
$ cp -R /var/www/mail.fcgi ~/www/my-mailer
The HTML source files are the *.htm files in the html/
subdirectory, and the main templates are the *.m4 files in the
html/m4/ directory.
Do not edit the *.html.* files (they are generated automatically
for various languages and character encodings).
If you are familiar with XSLT, you can add stylesheets
in html/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).
$ cd html
$ $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>
|