Re: Please help, problem with set_ini

From: Date: Wed, 02 Jun 2004 22:36:43 +0000
Subject: Re: Please help, problem with set_ini
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-187498@lists.php.net to get a copy of this message
Warren Gardner wrote:
Hi, I'm having a problem with a set_ini command... I need to be able to set the -f parameter (to set the originating address on my server). I am getting a false response code when I run the following command: $Result=ini_get("sendmail_path"), "/usr/sbin/sendmail -t -f".$DataUserInfo['OriginatingEmail']); How can I set this parameter at runtime, or are there any other alternatives Warren
False response error? You mean parse error. It should be ini_set("sendmail_path", "/usr/sbin/sendmail -t -f".$DataUserInfo['OriginatingEmail']); But that will not work, as sendmail_path is PHP_INI_SYSTEM - can be set only in php.ini or httpd.conf You can use mail()'s fifth parameter if you are not under safe mode. Or connect directly to port 25 using any of the smtp classes. HTH

« previous php.general (#187498) next »