mgbparts
11-05-2002, 08:42 PM
Hello,
I have purchased a cgi script for use on my club's website. This scipt uses a simple input form to gather information and then constructs a "Santa Letter" that is emailed to the person's mailbox.
I have set up the script and keep getting the following error message: "There was a problem sending your letter to Santa."
I believe the problem is with the default setting in the script itself.
Here is the opening section of the script for your review, I cannot post the entire script as it would violate the seller's (CGIConnection.com) policy. I've tried emailing the seller without any response.
-----------------------------------------------------------------------
#!/usr/bin/perl
#Santa's Helper
#Provided by CGI Connection
#http://www.CGIConnection.com
$| = 1;
use Socket;
&parse_form;
# Your mail server
# Eg. localhost
$SMTP_SERVER = "localhost";
# Return e-mail address
# Eg. your\@address.com
$from_address = "Santa\@www.mgdriversclub.com (Santa Claus)";
------------------------------------------------------------------------
My server_signature is: Apache/1.3.26
OS(linux) Details: Linux version 2.4.9-13
sendmail paths: /usr/bin/sendmail
/usr/sbin/sendmail
Isthis enough information to see why I am getting an error when I try running the script? I believe the script cannot find the sendmail on my server. How can I correct this?
I have purchased a cgi script for use on my club's website. This scipt uses a simple input form to gather information and then constructs a "Santa Letter" that is emailed to the person's mailbox.
I have set up the script and keep getting the following error message: "There was a problem sending your letter to Santa."
I believe the problem is with the default setting in the script itself.
Here is the opening section of the script for your review, I cannot post the entire script as it would violate the seller's (CGIConnection.com) policy. I've tried emailing the seller without any response.
-----------------------------------------------------------------------
#!/usr/bin/perl
#Santa's Helper
#Provided by CGI Connection
#http://www.CGIConnection.com
$| = 1;
use Socket;
&parse_form;
# Your mail server
# Eg. localhost
$SMTP_SERVER = "localhost";
# Return e-mail address
# Eg. your\@address.com
$from_address = "Santa\@www.mgdriversclub.com (Santa Claus)";
------------------------------------------------------------------------
My server_signature is: Apache/1.3.26
OS(linux) Details: Linux version 2.4.9-13
sendmail paths: /usr/bin/sendmail
/usr/sbin/sendmail
Isthis enough information to see why I am getting an error when I try running the script? I believe the script cannot find the sendmail on my server. How can I correct this?