Grab the latest version from the nightlies, if you can, as many issues have been resolved with the exception of the newline problem which I've already submitted a bug for and have talked to Felix about it. I use SMTP and use HTML templates.
$this->Email->to = '[EMAIL PROTECTED]'; $this->Email->bcc = array('[EMAIL PROTECTED]'); $this->Email->subject = "my subject"; $this->Email->from = 'Example Name <[EMAIL PROTECTED]>'; $this->Email->template = 'processorder'; $this->Email->sendAs = 'html'; //Send as 'html', 'text' or 'both' (default is 'text') $this->Email->delivery = 'smtp'; if(!$this->Email->send()) { $this->set('senderror', $this->Email->smtpError ); }; The template needs to be in /views/elements/email/html/ and you need a layout file in /views/layouts/email/html/default.ctp Also, to fix the newline issue, I made the following change to line 750 of the email component: @fwrite($this->__smtpConnection, preg_replace("/([^\r])\n/", "$1\r\n", $data)); That basically ensures that all line feeds are CRLF and not just LF. -Jonathan Snook http://snook.ca/ On Apr 21, 9:28 pm, Schuchert <[EMAIL PROTECTED]> wrote: > I tried specifying the template and it was a no go. It still sends in > text format. > > I also switched back to smtp and everything is being jammed into the > TO field. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---