How to get the output of a php script executed by a piped mail?
- by xun2
I've configured an email address to pipe (forward) all emails to /path/to/script.php
I thought I'll receive the output of the script as an email reply but it doesn't work.
How can I get the output of the script and send a reply email with the output as the email content?
(*) I know I can use mail() inside the script but I don't have permissions to edit the script, and I can't copy the script because it's being updated from time to time.