Sorry about not supplying the context. Here is the code snippet from
my Controller.

    var $component = array('Email');

    function join()
    {
          if (!empty($this->data)) {
                ....
                ....
                if ($this->Player->save($this->data)) {
                     $this->sendJoinEmail($this->data['Player']
['email'],
                              $this->data['Player']
['activation_code']);
         }
           }
    }

    function sendJoinEmail($emailaddr, $code)
    {
        $this->Email->to = $emailaddr;
        $this->Email->subject = 'Fremont Tennis Ladder Activation Code';
        $this->Email->replyTo = '[EMAIL PROTECTED]';
        $this->Email->from    = 'Tennis Ladder';
        $this->Email->template = 'welcome';
        $this->set('code', $code);
        $this->Email->send();
    }


On May 16, 4:12 pm, "b logica" <[EMAIL PROTECTED]> wrote:
> I think the obvious question is, how are you specifying the path to
> your template?
>
>
>
> On Fri, May 16, 2008 at 1:48 PM, cooked <[EMAIL PROTECTED]> wrote:
>
> > I have seeing a weird issue with the email component. The email are
> > being sent
> > but with a message that the template file is not found. For some
> > reason cake is trying to
> > find the template in
> > .../app/views/views/elements/email/text/welcome.ctp.
>
> > As you can see there is an extra "views" in the path. Can someone let
> > me why
> > is this hapening. Is this a known bug?
>
> > Thanks- Hide quoted text -
>
> - Show quoted text -

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to