In my home directory I created a php file called “test.php”. When I call it from the command line (#/user/bin/local/php -q test.php) it works fine.
#!/usr/local/bin/php -q<?php mail('firstname.lastname@example.org','Procmail test', 'incoming mail test'); ?>
So I made a basic .procmailrc file:
|/usr/bin/local/php -q test.php
But I get nothing. I’ve read every post in tis forum on it, scoured google groups and read at least 10 tutorials. I’ve tried every possible combination. Verbose, setting a log file using a condition, but nothing seems to work.
It’s like the .procmailrc file isn’t getting called and used. Any ideas? thanks.