create layout for email and put into: <?php print $content_for_layout; ?>
Then, create an element for email with content: <?php print $content; ?>
and in you code, retrieve layout code from database, replace what you need
and this content set to this element :)
it will print just what you set :)

Understand ? :)
--
Lep pozdrav, Tilen Majerle
http://majerle.eu



2012/1/8 Arnold <[email protected]>

> Hi, i want to use CakeEmail library to send email in some occasions.
>
> The issue i have is that i need to load the view template and layout
> from a field in DB and not from a file (this is because each user on
> my system can personalize email templates and layour), and also i have
> ###TEXT### on the templates that need to be replace.
>
> What is the best way to approach this goal?
>
> I know i have to do my own code for this, but can someone on list
> please guide me? how "should" i do this?
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> [email protected] For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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