ID:               40074
 Updated by:       [EMAIL PROTECTED]
 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
[EMAIL PROTECTED]'); mail ('[EMAIL PROTECTED]','test','test'); ?>"
| php 

Expected result:
----------------
the email received should have the return_path set to
[EMAIL PROTECTED]

Actual result:
--------------
the email received has the default return_path ([EMAIL PROTECTED]).

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

Reply via email to