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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to