I had a similar problem when I was sending the email with $this->Email->send ('<b>Body of my email</b>').The email was sent in text format. But then I changed to the template way.
$this->Email->template = 'myTemplate'; $this->set('someValue', '<b>Body of my email</b>'); And it started sending emails in HTML format. Hope this helps! eyesonly. On Sun, Apr 20, 2008 at 10:29 PM, Schuchert <[EMAIL PROTECTED]> wrote: > > I am having trouble with the email component in 1.2. I have tried both > 1.2.0.6311 and I tried 1.2.0.7705. > > I followed the example here: http://book.cakephp.org/view/176/email > and everytime I try and send an html email I only get the html source > and not a render html message. From what I understand if I set "$this- > >Email->sendAs = 'html' " it should automatically use the html version > of my layout and email element, is that correct? It appears to pick > the html element but again, I only see the html as source code. > > My second issue is anytime I try and send a message using smtp the > to,from, reply-to, subject, etc are all in the "TO" field when it > arrives in my mailbox. The actual subject comes in blank. The message > has the same issues as described above. > > Has anyone gotten the email component to work correctly with html > emails and/or smtp? > > > Thanks. > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---