did you create proper layouts in /app/views/layouts/email/ ? see http://bakery.cakephp.org/articles/view/203 for more info
On 19 mar, 18:44, "Gilles Dubois" <[EMAIL PROTECTED]> wrote: > CakePHP version 1.2.0.4451alpha > > When calling the ->send() method on a EmailComponent object, CakePHP > try to used a unnamed layout. This generate an error. Here's a sample > code from me showing my use of this component : > > $this->Email->to = $aTask['Owner']['email']; > $this->Email->from = $this->Session->read('Uzer.email'); > $this->Email->cc[] = $this->Session->read('Uzer.email'); > $this->Email->subject = 'something'; > $this->Email->body = 'something'; > $this->Email->send(); > > Is it due to a mistake I made or to a bug ? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---