|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2003-08-21 11:08 UTC] mhawkins at ukeu dot com
Description: ------------ Solaris 8 on Sparc SunONE Webserver 6.0sp5 (AKA iplanet) PHP 4.3.3RC2 (yes, I know, I should upgrade to RC4 first, but this is a production system) Sendmail - default as per Solaris 8. Error: PHP Warning: mail(): Could not execute mail delivery program in /opt/sunone/es/docs/download.php on line 174 php.ini: sendmail_path = "/usr/lib/sendmail -t -i" config.status: ./configure --prefix=/usr/local/php --with-mysql=/usr/local/mysql --with-nsapi=/opt/sunone/es --enable-track-vars --enable-libgcc The code works perfectly for a few hours, sending mails as expected, then the above error appears, and continues to fail until another webserver restart is performed. Prior to the sendmail_path variable being set, the error would log to /var/adm/messages, but since the change it only logs to the webserver errorlog. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 13:00:01 2025 UTC |
This problem is well known and a problem of Solaris in all versions. For PHP 4.3.4 we ported a lot of code from PHP5 back to eliminate fopen(),... Scripts now start without any problems (until PHP 4.3.3 even this could fail). But there are still a lot of extensions that use stdio functions. A solution would be to write a temporary file with the complete mail (headers and text) and then execute: exec("/bin/sh -c \"/usr/lib/sendmail -t </tmp/mail.txt\"").