Hi,
I'm trying to use a php shell script within an alias in sendmail. What I haven't been able to find out is how to extract the headers and the body of the message in the php script.
Can anyone help.
Thanks
Julian
Pffff... you want to extract a mailheader in PHP... erhm, this is just string manipulation.. there are books written about this... It's just not that simple... mayby the creattors of PHP should add a function stripMailHeader(); :-)
The string manipulation I can probably cope with, the problem is as far as the PHP script is concerned how does it extract the mail. Is it passed in an environment variable. As far as I can see it's not passed as an argument.
Just figured it out. Being a bit slow. Sendmail pipes to scripts through stdin.