--
Moderator: General Moderators
-
earthpiper
- Forum Newbie
- Posts: 3
- Joined: Tue Aug 12, 2008 10:38 pm
- lukewilkins
- Forum Commoner
- Posts: 55
- Joined: Tue Aug 12, 2008 2:42 pm
Re: Overwrite/Add to a default PHP function
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
Thanks,
Luke
-
earthpiper
- Forum Newbie
- Posts: 3
- Joined: Tue Aug 12, 2008 10:38 pm
Re: Overwrite/Add to a default PHP function
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
Code: Select all
bool mail ( string $to , string $subject , string $message [, string $additional_headers [, string $additional_parameters ]] )