Jake wrote:
> $buffer = '';
> $fp = fopen("php://stdin", "r");
> if ($fp)
> {
>  while(!feof($fp))
>  {
>    $buffer .= fgets($fp, 4096);
>  }
>  fclose($fp);
> }
> 


That will get you the data  (I think file_get_contents('php://stdin')
will also work).

Interpreting the mail is a little harder but I think there is a pecl
extension for it... yup: http://pecl.php.net/package/mailparse

HTHs

Col

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to