I know this has been discussed before on the group, but I'm still confused after reading the answers!
Here's what I want to do. I have an application which needs to send an email once a week to all registered users. I want to automate this using a cron job. The function for sending the email is called 'email' and is in the 'Users' controller. I can run cron jobs: the command I use to run a php script (called 'script.php') on cron is: 0 5 * * * /usr/local/bin/php /htdocs/MyApplication/script.php > /dav/ null This works when the script is in the MyApplication folder (it is a subdirectory of htdocs because there's another system in htdocs); it executes every 5 minutes (I'm doing every 5 mins while I test it). However, this can't get information from the application; I want to get a list of users and their email addresses (email addresses are in the 'User' model), and email that, so ideally I want it to run 'users/ email' instead of script.php. I'm using Cake 1.2. Can anyone point me in the right direction? Thanks! Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
