jasondubya wrote in php

Listens: c89.5fm - Seattle

Piping Mail [continued]

In following suggestions from my previous post, I was able to get a base script working that receives mail and processes it.  I have only one problem that I am hoping I can get some assistance with. 

Code: http://www.janix.net/test/mail.phps

When the script processes the e-mail, it sends a bounce with the output of the script.  I got rid of the output in the bounce by adding -q to the first line, but I still get the following error in the bounce. 

This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

  pipe to |/home/janix/www/test/rcvmail.php
    generated by test@janix.net

The following text was generated during the delivery attempt:

------ pipe to |/home/janix/www/test/rcvmail.php
       generated by test@janix.net ------



The server uses Sendmail.  Does anyone have any idea what is causing this bounce and how I can fix it?