Gossamer Forum
Home : General : Perl Programming :

blat problem

Quote Reply
blat problem
I'm getting an error like "The name specified is not recognized as an internal or external command, operable program or batch file"

when i try this simple script on a win o.s. (IIS)
---------------
#!perl

print "Content-type: text/html\n\n";

$to="you\@yourdomain.net";
$from="me\@mydomain.com";

$blat="blat.exe -s \"this is my subject\" -t \"$to\" -server mail.server.com -f \"$from\"";

system($blat);

print $blat;
print "<br>Done.";
-----------------------

Please suggests me what yo do.
Thanks.
Quote Reply
Re: [perlit] blat problem In reply to
Hi perlit,

Have you tried using the full path to blat? It sounds as if blat is not in your path. Try $blat="c:/path/to/blat.exe -s ... and see how that works.

Regards,
Charlie

Last edited by:

CP: Oct 6, 2001, 8:00 AM
Quote Reply
Re: [CP] blat problem In reply to
Hi

I found blat.exe path :) ... with the result that the script is not responding at all. No errors. Nothing. Simply, it is not responding. Ideas?
Thank you.