El 07/03/2008, a las 4:27, Andrey Demenev escribió:

> and was very surprised to see that is accepts email
> content as text.


I think you must google around a bit.

This is how I say Email to use a template (controller)

                $this->Email->template = 'usuarios'.DS.'alta';
                $this->set (compact('data')); // $data contains the data I want 
to  
pass to the template


This is an example of a template I have in my APP/views/element/email/ 
text/usuarios/alta.ctp (in Spanish, but you'll get the idea)


Hola, <?php echo $data['Usuario']['nombre']; ?>

Has sido dado de alta en <?php echo Configure::read('Sitio.nombre'); ? 
 > con los siguientes datos de conexión:

Usuario: <?php echo $data['Usuario']['usuario']; ?>
Clave: <?php echo $clave; ?>

Importante: Los datos que recibes en este mensaje anulan cualquier  
otro que hayas recibido anteriormente para este nombre de usuario en  
este servicio.

Para acceder, visita la página <?php echo Configure::read 
('Sitio.url'); ?>

Gracias.

--
Fran Iglesias
[EMAIL PROTECTED]





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