Page 1 of 1

mail function

Posted: Sat May 24, 2008 6:24 am
by vizzz
I need to override/extend php mail function to append an extra header entry.
My first solution was to modify php source code in ext/standard/
mail.c, this is pretty simple but i need to append something like:
domain: customer-domain.tld, where customer-domain.tld is the domain
that call mail().

my goal is to have something completely transparent to my users, or to
disable mail() and tell them to use custom_mail().

which is the cleaner way to implement this? an extension? source code
modification (but how to have domain in mail.c ?).

Thanks Andrea

Re: mail function

Posted: Tue May 27, 2008 5:37 pm
by vizzz
up