Cgiemail is a program written in the C language
that takes the contents of fill-in boxes on a form and emails them to a
specified destination. In addition to the form specification in the .html
file, a mail specification in a .txt file is required to format the resulting
email message.
We provide cgiemail in the cgi-bin directory of
each machine. Thus, it would be called with a URI such as /cgi-bin/cgiemail/mail.txt.
Details are provided below.
-
Get a sample
add form and sample
mail.txt file. If you prefer to edit things on-line, upload them to
your www directory.
-
Replace 'thelist' in the form with your domain.
-
Edit the form to have the input areas you like.
-
Edit mail.txt to use that input.
-
Have your variables start with the name required-
if you want to require that the user input these fields. (Like 'required-to'
in the example.) Remember to change both the form (.html) and template
(mail.txt).
-
You may alter the success variable in the HTML form
to change the message someone receives after filling out the form.
-
Wait! What we gave you was an example form, not a
complete example HTML file. Put the necessary stuff around it to make it
that. (Minimally put it between a <body> </body> pair.)
-
If you were editing off-line, upload the files.
-
Try it, and play with it.
Cgiemail was developed at MIT and is copyright 1994,
1995.
Back to Helpdesk
| |