Need to override mail function



I need to override 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
.



Relevant Pages

  • Re: Problems appending EMF files
    ... > I want to open an EMF file, append some graphic and write it back ... as in the following piece of source code: ... > File size easily rises to several megabytes, even if you do not append ... you start with a vector file, which is then rasterised and stored as ...
    (comp.lang.pascal.delphi.misc)
  • no responding, when i use rlock function
    ... I am using VFP9.0 SP1 to develop the application ... "Add New" button source code ... APPEND BLANK ... Teddy ...
    (microsoft.public.fox.helpwanted)