Just discovered that canned responses doesn’t work…
I can see that 2 months are gone since initial release of “hack-mega-super-script-by-Dave-to-make-authors-live-easier”.
Is it ready for use?
I just wanted to say a huge thanks to Dave for his work on this. I finally got my lazy ass around to setting this up, and found it’s awesome and saved me a load of time. I’m headed on vacation tomorrow and this will really help me out
Dave, I owe you a beer (or three)
For anyone wondering about cron, here are some tips based on my experience fiddling with it last night:
1. If you want to run Dave’s cron.php directly, rather than hitting a URL to trigger it, you may need to provide a full path to your email template in cron.php line 125, rather than a relative path
2. To set up a cron job every 10 minutes which runs the cron.php file directly, ssh into your server, then run
from your terminal. Add a line like this to the file and save it
*/10 * * * * /usr/bin/php /path/to/cron.php
The first path is to your PHP (it may be /usr/local/bin/php or something like that instead. Use
whereis php to find it in your bin). You need to use full paths with cron as system variables may not be loaded. Obviously /path/to/cron.php needs to be replaced with the actual path to your cron.php file.
3. Wondering if your cron job ran? Check out your system log ( /var/log/syslog ). Your crontab entry should be logged if it ran. If you want to send yourself a message because you’re paranoid (like me) that things aren’t working, you can email yourself with some data after each cron run. I placed this at the end of cron.php
mail( 'firstname.lastname@example.org' , 'Processed Emails' , 'Found '.$message_number.' emails from: '.$froms );
( I created the $from variable in the foreach loop so I could see which emails were processed at a glance )
Hope this helps someone else