$this0>logMessage is a shortcut to use in action/component, in a batch you must use sfContext::getInstance()->getController()->sendEmail(...)
On Aug 24, 1:44 pm, kusum <[EMAIL PROTECTED]> wrote: > hi, > i have written a batch script and executing it from command > line,and executing it from command line.i am sending email in this > script code is > > $raw_email = $this->sendEmail('mail', 'sendTalkToUs');Line --264 > $this->logMessage($raw_email, 'debug'); > > i am getting this error,rest of code is working properly. > > Using $this when not in object context in /home/ > k usum/workspace/zam_fe/ > batch/crm_sync.php on line 264 > > what should i use instead of this. > > Thanks, > Kusum --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---