Page 1 of 1
--
Posted: Tue Aug 12, 2008 10:57 pm
by earthpiper
--
Re: Overwrite/Add to a default PHP function
Posted: Wed Aug 13, 2008 6:25 am
by lukewilkins
Before you try to rewrite the way that all mail() functions work on your server, what is it about mail() that you are trying to change? There may already be answers out there.
Thanks,
Luke
Re: Overwrite/Add to a default PHP function
Posted: Wed Aug 13, 2008 9:59 am
by earthpiper
I need to force full headers for the sending address IE our postfix relay sends as our apache user so the envelope sending address is webserver not the actual sender. so the mail function would look like this mail('
to@domain.com' , 'foo' , 'blah', 'FROM:
sender@domain.com' , '-
fsender@domain.com');
Re: Overwrite/Add to a default PHP function
Posted: Wed Aug 13, 2008 10:07 am
by idevlin
Code: Select all
bool mail ( string $to , string $subject , string $message [, string $additional_headers [, string $additional_parameters ]] )
So you can add the additional headers if you want to. See
http://uk2.php.net/manual/en/function.mail.php for more details.