You will want to edit two things in the source file: WEBADMIN and AUTH. WEBADMIN is the complete e-mail address to which the comments should be sent by default. AUTH is the exact location of the authorization file.
The authorization file is simple a text file with a list of valid e-mail recipients. Users will only be able to use this program to send e-mail to those listed in the authorization file. Your file might look like this:
firstname.lastname@example.org email@example.comIn the above case, you would only be able to send e-mail to firstname.lastname@example.org and email@example.com. Make sure you include the value of WEBADMIN in your authorization file.
The following are valid variables in your form:
mail.cgi adds a "Sent-By:" header on each message so recipients know that the message was sent by this program and not by a regular mail client.
You can circumvent this problem by using a CGI program as your home page rather than an HTML page (or by using server-side includes). This CGI program will determine whether your browser is a graphics or text-browser. If it is a text-browser, it will send a text HTML file, otherwise it will send a graphics HTML file.
You will need to create two HTML files: a graphical and a text one. Place the names of these files in the macros: TEXT_PAGE and IMAGE_PAGE.