Re: Email Component 1.2 -- Problems with HTML and SMTP
On Apr 22, 9:56 pm, Schuchert [EMAIL PROTECTED] wrote: Could this be the reason that my html messages only come in as text? To be honest, I'm not sure. I'd probably have to pick apart the code to understand for sure. Try the MIME-Version header and see what happens. I'm leaning towards an issue with how the component is building the multi-part email, rendering the html as text. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Email Component 1.2 -- Problems with HTML and SMTP
You sir, are a savior. It wasn't on line 750 for the version I had but it did work beautifully. Now, I have to get my messages to pass the SPAM filters of my ISP. Thanks again Jonathan. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Email Component 1.2 -- Problems with HTML and SMTP
I spoke too soon. The SMTP issue is fixed but my html formatted messages still come through as text. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Email Component 1.2 -- Problems with HTML and SMTP
Should MIME-Version: 1.0 be included when using both but without attachments? I looked at the source for most of the html emails I have gotten lately and they all had MIME-Version: 1.0 in their header area. Could this be the reason that my html messages only come in as text? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Email Component 1.2 -- Problems with HTML and SMTP
I had a similar problem when I was sending the email with $this-Email-send ('bBody 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', 'bBody 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 -~--~~~~--~~--~--~---
Re: Email Component 1.2 -- Problems with HTML and SMTP
You on Windows? This seems like a newline problem. Nope, not on Windows. I had a similar problem when I was sending the email with $this-Email-send ('bBody 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', 'bBody of my email/b'); And it started sending emails in HTML format. Hope this helps! I will try specifying the template. I thought that it would know to use the html one if i chose html as the 'sendAs' --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Email Component 1.2 -- Problems with HTML and SMTP
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 -~--~~~~--~~--~--~---
Re: Email Component 1.2 -- Problems with HTML and SMTP
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 -~--~~~~--~~--~--~---
Email Component 1.2 -- Problems with HTML and SMTP
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 -~--~~~~--~~--~--~---
Re: Email Component 1.2 -- Problems with HTML and SMTP
You on Windows? This seems like a newline problem. On Sun, Apr 20, 2008 at 9: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 -~--~~~~--~~--~--~---