|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #43795 Message "sh: -t: not found" in apache error log every time i use mail()
Submitted: 2008-01-09 09:52 UTC Modified: 2008-01-12 15:32 UTC
From: sam at sambarrow dot com Assigned:
Status: Not a bug Package: Mail related
PHP Version: 5.3CVS-2008-01-09 (CVS) OS: Ubuntu 7.04
Private report: No CVE-ID: None
 [2008-01-09 09:52 UTC] sam at sambarrow dot com
For each time I try to execute the mail function, a message stating the following is placed in the apache error log:

"sh: -t: not found"

No idea what could be causing this, I just made a simple call to the mail function. However the default sendmail path is usually "sendmail -t ...", right? Maybe just parsing it wrong.

Apache/2.2.3 (Ubuntu) mod_ssl/2.2.3 OpenSSL/0.9.8c PHP/5.3.0-dev

Reproduce code:

mail('', 'Hello', 'You\'re not going to get this');

Expected result:
I expect an email

Actual result:
I get "sh: -t: not found" in the apache error log, and the email does not go through.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-01-12 15:32 UTC]
Check sendmail_path in your php.ini.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 23 17:01:33 2024 UTC