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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 12:01:31 2024 UTC