Try and run it on the command line, it will tell you where your errors are.
Line 9 is missing an ending quote and a semicolon. And while you are at it you might as well set line 9 to what your sendmail program is (probably /usr/lib/sendmail):
$sendmail = "/usr/lib/sendmail";
Line 24 just doesn't make any sense. Looks like what is missing from line 9, comment it out:
#usr/lib/sendmail";
Line 33 is missing a semicolon:
chop($date);
Line 88 is screwed, turn it into this:
So now it should look like this:
Actually there was some repeated shit at the top that I got rid of. Now, that fixes the syntax problems. You also need to make sure the program will have write access to the log file you have assigned in the program.
And of course you'll need the configuration file that the program uses which is an empty ~/.allowmailform file in the home directory of the user that is to receive messages from this CGI. That file needs to be readable by the web server which means the user must also have at least the execute bit turned on in their home directory for world.
I just created a basic HTML form that calls this CGI and it worked. It sent mail to my local account. So you'll need to write an HTML form to use it.
[ September 22, 2002: Message edited by: void main ]