I suddenly had a mail function call in php stop working. The mail() function kept returning null. That told me that it wasn't my parameters, but the link to the actual script that sends mail. I went into and looked at phpinfo() and the default for sendmail path was: "/usr/sbin/sendmail -t -i". Apparently the t is not supported and the i option is not needed. Once I removed those, I was able to use my mail() function once again. :) I am fairly certain that -t -i is a default for php if there is no entry (there was none for mine). I think that a path of /usr/sbin/sendmail should be used to make sure this works correctly w/o having to troubleshoot. Thanks! Reproducible: Always Steps to Reproduce: 1.Install PHP with sendmail install. 2. Try to use mail(). 3. See that it fails. ;) etc etc Actual Results: Mail() does not work. Expected Results: See description. none really.
As said, this is upstream default and it's clearly noted as such in php.ini
Agreed, this is upstream default and won't be changed. It works, unless you're using some strange MTA that doesn't like that, can only think of SSMTP, and that one isn't a real server-grade MTA, and the path to sendmail is correct. Just specifying the path to sendmail w/o any parameters would probably break lots of other stuff, so we won't do that. Best regards, CHTEKK.