[ back to toc ]

attempting to install a BNB virtual card cgi script

Date: 2002/03/10 23:13

Q:
I have installed and configured a BNB,
http://www.bignosebird.com/carchive/cardcgi.shtml,virtual card cgi script
but am having problems with the mail portion.
The script gives you the following two options for the send mail:
# USE EITHER SMTP OR SEND_MAIL DEPENDING ON YOUR SYSTEM# BUT NOT BOTH!
$SMTP_SERVER="/mail.ooffy.com";
#SEND_MAIL="/usr/sbin/sendmail";
and if I set it as seen above, the script completes fine on my website but
I receive no emails. If I set the script to use send_mail instead of
smtp_server, I receive an Internal Server Error. This is strange to me as
I have installed a cgi message board which uses the send mail and works
perfectly.
The page where I have the card script is: www.ooffy.com/card.html
The page where I have the bulletin board script, with the working emails,
is:
http://ooffy.com/cgi-bin/MasterBoard.cgi

Any help is greatly appreciated,
-jeff
A:
$SMTP_SERVER="/mail.ooffy.com";

What is the leading slash???? You have to

$SMTP_SERVER="mail.ooffy.com";

Regards,
Peter

Q:
I removed the forward slash and still no email received. Any idea why the
send_mail results in an internal server error? I just tried the email
function from my bulletin board again, and it is working correctly. Both
scripts are in my cgi-bin and I copied and pasted the sendmail location
from the bulleting board script to the virtual card script.

A:
There can be several reasons. However I feel a bit confused, because you
write that "copied and pasted the sendmail location", though the script
seems to use the SMTP way of sending the mail. You can not and should not
try to mix the two in the BNB scripts.

There are some things that you can do, however. Check the name of the mail
server. Check the From field is filled (the sender address) that is valid
and is allowed by that SMTP server. Try to use 'localhost' as a string to
be the SMT server.

Regards,
Peter

[ back to toc ]