When I run this simple perl script from web....
#!/usr/bin/perl
open(SENDMAIL, &|/usr/sbin/sendmail -t -odi&
or die &error: $!\n&;
print SENDMAIL &&&EOF&;
From: TestFrom &info\@domain.com&
To: test &test\@domain.com&
Subject: mail test
test
eof
close (SENDMAIL) or die &sendmail didn't close nicely&;
exit;
... I receive an internal server error (however I receive the Email) .
If I execute above script from command line it works fine , no error . Why ? Thanks
#!/usr/bin/perl
open(SENDMAIL, &|/usr/sbin/sendmail -t -odi&
print SENDMAIL &&&EOF&;
From: TestFrom &info\@domain.com&
To: test &test\@domain.com&
Subject: mail test
test
eof
close (SENDMAIL) or die &sendmail didn't close nicely&;
exit;
... I receive an internal server error (however I receive the Email) .
If I execute above script from command line it works fine , no error . Why ? Thanks