PDA

View Full Version : script not finding sendmail


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?

MCookie
11-05-2002, 10:00 PM
Hi,
If you're using sendmail, you should comment out this line:
$SMTP_SERVER = "localhost";

and somewhere (maybe you should have posted a few lines more) must be a place to put your path to sendmail, like $SENDMAIL = "";
If not, try replacing "localhost" by "/usr/sbin/sendmail". Or post a bit more code.

mgb78owner
11-06-2002, 02:07 AM
Thank you for the reply, I've tried your suggestion but it still wouldn't work.

Please note that I needed to re-apply for a new member id as my other one wouldn't let me post to this thread. Please allow this thread to end as I've reposted under my new member id.

Thank you,

Bob