#40074 [Opn->Bgs]: unable to set sendmail_path using php via shell
| From: | bjori@php.net | Date: | Tue, 09 Jan 2007 11:39:03 +0000 |
| Subject: | #40074 [Opn->Bgs]: unable to set sendmail_path using php via shell | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-107356@lists.php.net to get a copy of this message | ||
ID: 40074
Updated by: bjori@php.net
Reported By: trani at softwareplanet dot net
-Status: Open
+Status: Bogus
Bug Type: Mail related
Operating System: Linux cent os
PHP Version: 4.4.4
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
sendmail_path cant be changed with ini_set().
Use php -dsendmail_path="...."
Previous Comments:
------------------------------------------------------------------------
[2007-01-09 11:28:57] trani at softwareplanet dot net
Description:
------------
It seems that using php from command line (not calling it via web and
then passing via apache and htaccess) the ini_set directive with
sendmail_path doesn't work: ini_set is ignored
Reproduce code:
---------------
echo "<? ini_set('sendmail_path', '/usr/sbin/sendmail -t -i -f
autoreply@mydomain.it'); mail
('test@mydomain.com','test','test'); ?>"
| php
Expected result:
----------------
the email received should have the return_path set to
autoreply@mydomain.it
Actual result:
--------------
the email received has the default return_path (username@severname).
Where can I set this value (sendmail_path) when I execute a script
directly from the command line?
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=40074&edit=1