would anyone know why mail(); and popen(); would fail inside the libphp4.so but execute correctly from the command line
Apache/1.3.19 (Unix) (Red-Hat/Linux) mod_ssl/2.8.1 OpenSSL/0.9.6 PHP/4.0.4pl1 <? $email = "[EMAIL PROTECTED]"; $msg="testing this out"; $subject="testing"; #below all on one line... $addons = "From: [EMAIL PROTECTED]\nReply-To: [EMAIL PROTECTED]\nDisposition-Notification-To: [EMAIL PROTECTED]\nX-Mailer: PHP/" .phpversion() ; #above all on one line... if (mail($email, $subject, $msg, $addons)) {print "mail sent"; } else { print "mail died";} $outme="Subject: $subject\n"; $outme.= "To: ".$email."\n"; $outme.= $addons."\n"; $outme.= "\n".$msg."\n"; $fp=popen ("/usr/sbin/sendmail -t -i","w"); fwrite($fp,$outme); pclose($fp); ?> if above is executed from command line system accepts mail with no issues... if run from within the apahce server.. executes returns "mail died" and the following in logs.... qmail-inject: fatal: read error qmail-inject: fatal: read error any help would be appreciated... kenneth gf brown ceo shadowplay.net -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]