php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: sam at sambarrow dot com
New email:
PHP Version: OS:

 

 [2008-01-09 09:52 UTC] sam at sambarrow dot com
Description:
------------
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:
---------------
<?php

mail('sam@sambarrow.com', '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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-01-12 15:32 UTC] tony2001@php.net
Check sendmail_path in your php.ini.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jan 19 01:01:31 2025 UTC