[symfony-users] Re: Sending Email from CLI task in Symfony 1.2

2009-03-11 Thread danielwinter
Have another look at the link you posted - you might be missing these lines: $databaseManager = new sfDatabaseManager($configuration); $databaseManager->loadConfiguration(); On Mar 11, 3:40 am, xhe wrote: > Hi All, > > But can you inform me how I can access other propel class? > > I used > > c

[symfony-users] Re: Sending Email from CLI task in Symfony 1.2

2009-03-10 Thread xhe
Hi All, But can you inform me how I can access other propel class? I used class sendEmailAlertTask extends sfPropelBaseTask based on the http://www.symfony-project.org/book/1_2/16-Application-Management-Tools but when I used $user=UserPeer::retrieveByPK(1); I got this error: Fatal E

[symfony-users] Re: Sending Email from CLI task in Symfony 1.2

2009-03-04 Thread danielwinter
Thanks James, here's my working code from the task's execute() method in case it helps anyone else: $configuration = ProjectConfiguration::getApplicationConfiguration ('climategp', 'dev', false); sfContext::createInstance($configuration); $configuration->loadHelpers('Partial'); tr

[symfony-users] Re: Sending Email from CLI task in Symfony 1.2

2009-03-04 Thread James Cauwelier
Here 's some code of mine, although I use it on sf1.1. It should work on 1.2 as far as I know namespace= 'send'; $this->name = 'resetPassword'; $this->briefDescription = 'Send reset password emails'; $this->detailedDescription = <