|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-01-09 11:39 UTC] bjori@php.net
[2007-01-09 11:40 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 12:00:01 2025 UTC |
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?