Hello, I'm having a problem in which the Email component "parses" the
body of the message and finds a "to: " and discards it.
Here is the code:

$body = "Formulario de contacto enviado a través del website\n\n
Nombre: {$this->data['ContactForm']['nombre']}\n
Fecha de nacimiento: {$this->data['ContactForm']['fecha_nacimiento']}
\n
Comentarios: {$this->data['ContactForm']['comentarios']}\n";

$this->Email->to = '[email protected]';
$this->Email->from = 'from example';
$this->Email->subject    = 'Formulario de contacto enviado vía web';
if ($this->Email->send($body))
[...]

In this code, the Email component detects the "to: " in "Fecha de
nacimiento: " and discards it and everything following it in that
line, so the resulting message is:

Formulario de contacto enviado a través del website
Nombre: Name entered
Fecha de nacimien
Comentarios: Some comments...

Any fix to this?
Thanks in advance!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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