#40074 [NEW]: unable to set sendmail_path using php via shell

From: Date: Tue, 09 Jan 2007 11:28:57 +0000
Subject: #40074 [NEW]: unable to set sendmail_path using php via shell
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-107355@lists.php.net to get a copy of this message
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 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 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

« previous php.bugs (#107355) next »