I just so happens that I set up my project with email templates the other day. What I did is created a component called EmailTemplates that contains a separate variable for each template and these variables are assigned values in the startup function.
In terms of using the templates, I do something like this:- $message = sprintf($this->EmailTemplates->lostpassword, $username, $newpass); These variables are used in the template like so:- "Hello %1\$s your new password is password: %2\$s" --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
