Bug #14972 Updated: Setting 'sendmail_path' leads to PHP not find sendmail

From: Date: Mon, 21 Jan 2002 13:14:53 +0000
Subject: Bug #14972 Updated: Setting 'sendmail_path' leads to PHP not find sendmail
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-77672@lists.php.net to get a copy of this message
ID: 14972 User updated by: fuerst@mac.com Old Summary: Setting 'sendmail_path' leads to PHP not find sendmail Reported By: fuerst@mac.com Status: Open Bug Type: PHP options/info functions Operating System: MacOS 10.1.2 (Darwin 5.2) PHP Version: 4.1.1 New Comment: > since sendmail_path defaults to 'sendmail -t -i', > leaving it out should be ok for you The above setting was just an example... In real: My intranet domain is named unusual so I want to set the envelope sender to something real by using the '-f' switch. Some smtp servers outside will return an error like "domain unknown" if the envelope sender domain is named incorrect. Previous Comments: ------------------------------------------------------------------------ [2002-01-21 03:35:46] mfischer@php.net A note to the submitter: since sendmail_path defaults to 'sendmail -t -i', leaving it out should be ok for you. I'm opening this, because the PHP.INI clearly says: ";for unix only, may supply arguments as well (default is 'sendmail -t -i')" Either way, it is a bug (doc or something else) ------------------------------------------------------------------------ [2002-01-20 18:33:55] markonen@php.net sendmail_path is only for setting the path to the sendmail executable. You can't set command line parameters for sendmail with it. To supply command line parameters, use the fifth parameter to the mail() function, documented at http://www.php.net/mail. ------------------------------------------------------------------------ [2002-01-10 11:55:05] fuerst@mac.com If 'sendmail_path' is set in the php.ini like this: sendmail_path = 'sendmail -t -i' I get the following error in the Apache error log: zsh: no such file or directory: /usr/sbin/sendmail -t -i If I run /usr/sbin/sendmail -t -i manually from the zsh it works but if I surround it by quotation marks I get the same error. ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=14972&edit=1

« previous php.dev (#77672) next »