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
mail function
Moderator: General Moderators