Re: [PHP] Piping email into a php script

2005-04-04 Thread Philip Hallstrom
$buffer = file_get_contents("php://stdin"); will read the contents of standard input into the string $buffer. -philip On Mon, 4 Apr 2005, Jeff McKeon wrote: Running PHP 4.3.9, apache, mysql, qmail I know it's possible to pipe an incoming mail message to a script in qmial by creating a .qmail file f

[PHP] Piping email into a php script

2005-04-04 Thread Jeff McKeon
Running PHP 4.3.9, apache, mysql, qmail I know it's possible to pipe an incoming mail message to a script in qmial by creating a .qmail file for the user like: |script What I'd like to do is pipe incoming mail for a specific user into a php script that parses it out (using mailparse I imagine) a