luckydexte
Programmer
Hello All,
I am running into a problem using a Windows 2000 server running IIS 5.0. The following code works when it is run from a Perl program run at the command line but not run over the Internet.
## Start of code
$to = "brandon\@email.com";
$from = "server\@email.com";
$exe = "e:/clemail/cscript.exe";
$source = "e:/clemail/commandlineemail.vbs";
$subject = "Subject";
$file = "e:/client_webs/test.pl";
system("(\"$exe\" \"$source\" \"$to\" \"$from\" \"\" \"$subject\" \"$file\"
"
;
## End of code
The program commandlineemail.vbs is a Microsoft program that sends an email. I have copied cscript.exe from the System32 directory so there were not permission problems. Any help would be greatly appreciated.
Cheers,
Brandon
This .vbs program is a Microsoft
I am running into a problem using a Windows 2000 server running IIS 5.0. The following code works when it is run from a Perl program run at the command line but not run over the Internet.
## Start of code
$to = "brandon\@email.com";
$from = "server\@email.com";
$exe = "e:/clemail/cscript.exe";
$source = "e:/clemail/commandlineemail.vbs";
$subject = "Subject";
$file = "e:/client_webs/test.pl";
system("(\"$exe\" \"$source\" \"$to\" \"$from\" \"\" \"$subject\" \"$file\"
## End of code
The program commandlineemail.vbs is a Microsoft program that sends an email. I have copied cscript.exe from the System32 directory so there were not permission problems. Any help would be greatly appreciated.
Cheers,
Brandon
This .vbs program is a Microsoft