On Jun 30, 2006, at 6:05 AM, Attila wrote:

>
> well, I need it working today, so here is what I'm just doing:
>
> 1) extension of the email component to be suited for multipart
> alternative

Just add to the one on the wiki, cake lovers will worship you forever.

>
> 2) master layout for a multipart alternative email, with one
> "renderElement" for each of the templates, the html and the txt
> version.

The email component on the wiki takes a layout so that would be a nice
wrapper for the the other page templates.

> 3) the html and the txt version as templates in cakephp style created
> as elements in views/elements (I think they fit in there, but do  
> they?)

elements are the way to go, /views/elements/email/html_part.thtml
$this->renderElement('email/html_part');

>
> 4) "set"ting the vars needed in the controller and calling the Email
> component to render and send, following (but extending) the wiki
> sample.

Setting is cool.

>
> As you see below, I'm still working on part 3 and 4, so this is no
> finished code to drop in somewhere, not yet.
>
> If you see me doing something stupid, or un-cakePHPish, please alert
> me.

Nope you are looking in all the right places. Keep rolling. We'll  
refactor later.


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

Reply via email to