note 120177 added to mail.configuration

From: Date: Wed, 16 Nov 2016 20:46:14 +0000
Subject: note 120177 added to mail.configuration
Groups: php.notes 
Request: Send a blank email to php-notes+get-207119@lists.php.net to get a copy of this message
If anyone gets this cryptic error message in the PHP error logs: "sh: -t: command not found" after upgrading from PHP 5.4, this may be the solution for you. I upgraded PHP from 5.4 to 5.6 and all our mail() functionality suddenly broke, with no useful error logging. If this is you, and you've been using ini_set() to set the "sendmail_path" then note that even though it's apparently not mentioned in the upgrade documentation -- or anywhere else I could find on php.net (or a dozen forums) -- you'll now need to go set the sendmail_path in your php.ini file; it is now ignored if you use ini_set() to specify a path to the sendmail binary on the fly. So, just specify "sendmail_path" in php.ini instead. That's all there is to it -- that fixed all the mail() functionality for us. Hope this little note saves someone else as much time as I spent troubleshooting and researching. Cheers! ---- Server IP: 72.52.91.14 Probable Submitter: 192.152.183.2 ---- Manual Page -- http://php.net/manual/en/mail.configuration.php Edit -- https://master.php.net/note/edit/120177 Del: integrated -- https://master.php.net/note/delete/120177/integrated Del: useless -- https://master.php.net/note/delete/120177/useless Del: bad code -- https://master.php.net/note/delete/120177/bad+code Del: spam -- https://master.php.net/note/delete/120177/spam Del: non-english -- https://master.php.net/note/delete/120177/non-english Del: in docs -- https://master.php.net/note/delete/120177/in+docs Del: other reasons-- https://master.php.net/note/delete/120177 Reject -- https://master.php.net/note/reject/120177 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#207119) next »