Hi,
I am new to Perl CGI programming and I am trying to send e-mail. I am
receiving the following error at the bottom of my form.
Does anyone know what is causing this?
Any help would be appreciated!
Thanks,
Sheri
------------------------------------------------------------------------
------------------------------------------------------------------------
--------------
Error:
The name specified is not recognized as an internal or external command,
operable program or batch file. Error closing sendmail: No such file or
directory at C:\Inetpub\wwwroot\cgi-bin\form.cgi line 128.
------------------------------------------------------------------------
------------------------------------------------------------------------
------------------------------------------------------------------------
------
Code causing error:
sub send_sales {
my( $name, $hdnLastName, $hdnEmail, $hdnPhone, $hdnCompany ) =
@_;
open MAIL, "| E:\Perl\site\lib\Mail -t -i"
or die "Could not open sendmail: $!";
print MAIL <<END_OF_MESSAGE;
To: someone\@somewhere.com
Reply-To: $hdnEmail
Subject: E-mail Sales Test
Contact information:
$name
$hdnLastName
$hdnEmail
$hdnPhone
$hdnCompany
END_OF_MESSAGE
close MAIL or die "Error closing sendmail: $!"; #line 128
}
_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web