mail function

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
vizzz
Forum Newbie
Posts: 2
Joined: Sat May 24, 2008 6:22 am

mail function

Post 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
vizzz
Forum Newbie
Posts: 2
Joined: Sat May 24, 2008 6:22 am

Re: mail function

Post by vizzz »

up
Post Reply