Pipe an email to PHP

From: Date: Tue, 26 Aug 2003 20:04:56 +0000
Subject: Pipe an email to PHP
Groups: php.general 
Request: Send a blank email to php-general+get-160848@lists.php.net to get a copy of this message
I'm sure this question has been visited before, but I've had some troubles searching through the archives. This is at least a two part question. I wish to use a pipe instead of the pop3 class, because I wish the email to start the script instead of waiting for a cronjob. 1) The pipe itself: On a cPanel server, I wish to setup an email address with a pipe like: script@mydomain.com <mailto:script@mydomain.com> : |/home/account/public_html/mailtools/emailscript.php 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." 2) to read the data: I wish to parse the data into $from $subject and $body The data will then be manipulated, and key pieces of data will be extracted and sent to either a database or an instant message to my cell phone. (this part I've already solved) Thomas Tremain www.LiveHost.net <http://www.LiveHost.net> www.GotoNames.com <http://www.GotoNames.com> www.TrafficExaminer.com <http://www.TrafficExaminer.com>

« previous php.general (#160848) next »