On Jun 7, 2011, at 23:31, Sergei wrote: > I recommend making dedicated script for this task and scheduling it with > cron. Dont use CakePHP for scheduled tasks, it's overkill for the server.
There's no problem using CakePHP as the framework for that dedicated script. If you want to send scheduled emails based on something in your database, it makes perfect sense to do so. There is documentation in the CakePHP book on how to write CakePHP shell scripts: http://book.cakephp.org/view/1107/Creating-Shells-Tasks I agree though that there is no reason to have cron call up a web URL; there is no need to involve a web server in your email sending process, unless there is actually a user submitting something on the web page and thus initiating the email. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
