Re: Pipe an email to PHP

From: Date: Wed, 27 Aug 2003 14:47:46 +0000
Subject: Re: Pipe an email to PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-160917@lists.php.net to get a copy of this message
Is emailtest.php executable, does it start with #!/usr/bin/php, is $HOME set? Thomas Tremain wrote:
I have attempted to create a .procmailrc that looks like: :0 * ^TO_emailtest@mydomain.net | $HOME/emailtest.php I have also removed the forwarder from my /etc/valiases file. Now I get: The following address(es) failed: emailtest@mydomain.net Can I be sure Procmail is even handling my email? I thought Exim and MailScanner took care of that. -----Original Message----- From: Greg Donald [mailto:destiney@destiney.com]
This always gives me an error saying it cannot foraward. If I pipe it to "|/usr/bin/php /home/account/public_html/mailtools/emailscript.php" it tells me: "No input file specified."
I use something like that in my .procmailrc: :0 fw | /usr/bin/spamassassin :0 * ^X-Spam-Status: Yes {
        :0 c
        | $HOME/.spamassassin/spamcop.php
        :0
        spam
}


« previous php.general (#160917) next »