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...


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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