Ok, here is all I touched on this FormMail.pl script. The actual script is about 2700 lines long, I dont think you need all of that...I've posted below everything I touched:
# NMS FormMail Version 3.12c1
use vars qw(
$DEBUGGING $emulate_matts_code $secure %more_config
$allow_empty_ref $max_recipients $mailprog @referers
@allow_mail_to @recipients %recipient_alias
@valid_ENV $date_fmt $style $send_confirmation_mail
$confirmation_text $locale $charset $no_content
$double_spacing $wrap_text $wrap_style $postmaster
# PROGRAM INFORMATION
# FormMail.pl Version 3.12c1
# This program is licensed in the same way as Perl
# itself. You are free to choose between the GNU Public
# License <http://www.gnu.org/licenses/gpl.html> or
# the Artistic License
# For help on configuration or installation see the
# README file or the POD documentation at the end of
# this file.
# USER CONFIGURATION SECTION
# Modify these to your own settings. You might have to
# contact your system administrator if you do not run
# your own web server. If the purpose of these
# parameters seems unclear, please see the README file.
$DEBUGGING = 0;
$secure = 1;
$allow_empty_ref = 1;
$max_recipients = 2;
$mailprog = '/usr/sbin/sendmail -oi -t';
$postmaster = 'email@example.com';
@referers = qw(www.stevedolan.com);
@allow_mail_to = qw(firstname.lastname@example.org);
@recipients = ();
%recipient_alias = ();
@valid_ENV = qw(REMOTE_HOST REMOTE_ADDR REMOTE_USER HTTP_USER_AGENT);
$locale = '';
$charset = 'iso-8859-1';
$date_fmt = '%A, %B %d, %Y at %H:%M:%S';
$style = 'http://www.stevedolan.com/css/5.css';
$no_content = 0;
$double_spacing = 1;
$wrap_text = 0;
$wrap_style = 1;
$send_confirmation_mail = 0;
$confirmation_text = <<'END_OF_CONFIRMATION';
Subject: My Contact Form
Thank you for contacting me, I have recieved your submittion and will respond accordingly. I hope all is well with you and yours.
# You may need to uncomment the line below and adjust the path.
# use lib './lib';
# USER CUSTOMISATION SECTION
# Place any custom code here
# USER CUSTOMISATION << END >>
# (no user serviceable parts beyond here)
# The code below consists of module source inlined into this
# script to make it a standalone CGI.
# Inlining performed by NMS inline - see /v2/buildtools/inline
# in CVS at http://sourceforge.net/projects/nms-cgi for details.
(and the code continues)
And for the Test.pl thing you had me try, I this is what I got when I requested that page, which happens to be the same exact error I get with this form:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, email@example.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8i DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/126.96.36.19935 Server at www.stevedolan.com Port 80
I should mention though, that I was in contact with my host Tech Support, and they said that they "fixed" the problem, and I still need to do some configuration -
When I checked after they fixed it, the submit button processed correctly, but redirected to the incorrect page (no errors), yet I didn't receive any emails. When I attempted (poorly) to correct the problem, I kept ending up with the Internal Server Error.
I hope that helps in some way. Thanks for your time, I really appreciate it.