Menu Open

Email Pipe to Program - PHP - cPanel

27 February 2011, 1:48 AM
Simple code to allow you to pipe an email to PHP using Forwarder setup with cPanel. You can use by setting up a new Forwarder and using Advanced options. To pipe you will need to enter this in the box requires changing the root to your PHP file.
/usr/bin/php -q /home/user1/scripts/pipemail.php
pipemail.php must have permission 0775 Contents of pipemail.php are as followed 
#!/usr/bin/php -q