Hi elogic,
-- it's long ago. But did you get it to work? I am having a quite similar problem. Cron-Job seems to run but stops with an error while sending the mail.
Thanks for any hint,
Tobi.
Am Donnerstag, 8. November 2012 05:31:42 UTC+1 schrieb elogic:
Am Donnerstag, 8. November 2012 05:31:42 UTC+1 schrieb elogic:
Hi All,
I have created my first shell that I need to run as a cron, I have the shell setup as follows:The cron is running but I am getting the following errors in the log file and the actual email won't send.App::uses('CakeEmail', 'Network/Email'); class TaskEmailerShell extends AppShell { public $uses = array('Task'); public function main() { // DO NOTHING } public function send() { // GENERATE AND SEND THE EMAIL // ------------------------------
------------------------------ $email = new CakeEmail(); .... and so on> Any idea what might be going on here? My cron line is as follows:[36mUsage:[0m cake emailer [-h] [-v] [-q] [36mOptions:[0m --help, -h Display this help. --verbose, -v Enable verbose output. --quiet, -q Enable quiet output.
/home/village/public_html/lib/
Cake/Console/cake TaskEmailer send -cli /usr/bin -console /Cake/Console -app /home/village/public_html/app >> /home/village/public_html/ emailer_log.log
Using cakephp Version: 2.2.3
Thanks
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment