How to get the output of a php script executed by a piped mail?

Posted by xun2 on Server Fault See other posts from Server Fault or by xun2
Published on 2011-11-21T22:22:42Z Indexed on 2011/11/22 1:55 UTC
Read the original article Hit count: 628

Filed under:
|
|
|

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.

© Server Fault or respective owner

Related posts about php

Related posts about email