[ back to toc ]

CGI on a Windows NT server

Date: 2001/12/19 09:39

Q:
I'm trying to get a script, specifically BNBForm from Bignosebird.com, to
work on a Windows NT server. I've installed UNIX scripts before, but this
one has me baffled. The mailing program is imail, and when I asked for
the location of the mailer script on the NT server, the Web hosting guy
gave me the following, even MORE baffling information:
location of script:
c:\perl\site\lib\Net
read below:
BUT WHAT YOU ACTUALLY PROBABLY NEED FOR YOUR SCRRIPT IS SIMPLY
WWW.AMERICANINTERNET.COM IF T5HE SCRIPT WAS WRITTEN FOR WINDOWS NT SERVER
(it probably will not work otherwise) THATS ALL YOU NEED..

The relevant code in the cgi itself is:

#SMTP_SERVER: indicates the name of the host acting as the e-mail
# gateway. "localhost" should work on most systems.
#$SMTP_SERVER="";
#OR IF SMTP IS UNAVAILABLE TO YOU, USE SEND_MAIL# BUT NOT BOTH!
$SEND_MAIL="";

I've tried the info the webhost gave me in both the SMTP_SERVER and
SEND_MAIL areas of the script, with no success. Any ideas?

*NAME-DELETED*
A:
The script is not "written for UNIX". This script is written for UNIX and
NT. The issue is that there is no sendmail program on NT. Therefore you
have no other choice but to use SMTP_SERVER configuration in your script.
This should work setting the

$SMTP_SERVER="localhost";

It may not work however if the system manager configured the system not to
handle SMTP requests.

I have no idea what he (or she, though ladies usually are more polite)
meant by mentioning Americaninternet.com

If you the script does not work with the SMTP_SERVER setting ask the
system manager how to send SMTP mail from the script, what is the SMTP
server for the web server.

Regards,
Peter

[ back to toc ]