email pipe
From SkyPHP
How to pipe an email into a php script
nano /etc/valiases/domain.com
incoming@domain.com: |php -q /home/username/public_html/pages/email/scripts/pipe.php
cd /home/username/public_html/pages/email/scripts nano pipe.php
#!/usr/bin/php -q
<?php
$pipe = fopen("php://stdin", "r");
while(!feof($pipe)):
$buffer .= fgets($pipe, 4096);
endwhile;
fclose($pipe);
$incoming_email = $buffer;
?>
chown nobody:nobody pipe.php chmod 755 pipe.php
You may need to comment out the following line in your php.ini file if applicable assuming you don't have a reason to keep it.
[browscap] ; browscap = extra/browscap.ini
