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.

  1. Get a sample add form and sample mail.txt file. If you prefer to edit things on-line, upload them to your www directory.
  2. Replace 'thelist' in the form with your domain.
  3. Edit the form to have the input areas you like.
  4. Edit mail.txt to use that input.
  5. 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).
  6. You may alter the success variable in the HTML form to change the message someone receives after filling out the form.
  7. 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.)
  8. If you were editing off-line, upload the files.
  9. Try it, and play with it.
Cgiemail was developed at MIT and is copyright 1994, 1995.

 


Back to Helpdesk
Beautiful Graphics for the Internet Community Created by Artmaker Studio. Sitemap home7 8 9 0 2