From:             trani at softwareplanet dot net
Operating system: Linux cent os
PHP version:      4.4.4
PHP Bug Type:     Mail related
Bug description:  unable to set sendmail_path using php via shell

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 bug report at http://bugs.php.net/?id=40074&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=40074&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=40074&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=40074&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=40074&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=40074&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=40074&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=40074&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=40074&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=40074&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=40074&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=40074&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=40074&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=40074&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=40074&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=40074&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=40074&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=40074&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=40074&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=40074&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=40074&r=mysqlcfg

Reply via email to