Been playing with it a bit my self (and submitted a patch to nate) but try this
$this->Email->Controller->set(); I'm working on tracking down why $this->set isn't working, but the above should work in the meantime Sam D On 3/7/07, Marcus <[EMAIL PROTECTED]> wrote: > > Same problem here. The variables I set in a controller action with > $this->set('foo', 'bar'); are not available in the view which is > rendered by the EmailComponent (the viewVars array is empty) > > It looks like that after rendering the mail template: > > <b>Notice</b> (8)</a>: Undefined variable: username [<b>CORE/app/ > views/elements/email/text/user/activation.ctp</b>, line <b>1</b>] > > (I used this tutorial from the bakery: > http://bakery.cakephp.org/articles/view/203) > > Ideas to solve this, anyone? > > On 16 Feb., 21:45, Toby Parent <[EMAIL PROTECTED]> wrote: > > Now I'm trying to figure out why variables set in my controller aren't > > available to myemail. Wondering if I'm somehow unsetting them somewhere > > else... > > > > > -- (the old fart) the advice is free, the lack of crankiness will cost you - its a fine line between a real question and an idiot http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---