Re: email component utf-8 body

2008-06-29 Thread bujanga

Yes, that is where I started. I then set it using charset in:
 function _ggisSendMail(){
   $this-Email-charset = 'iso-8859-15';
   $this-Email-to = '[EMAIL PROTECTED]';
   $this-Email-subject = 'Test';
   $this-Email-from = '[EMAIL PROTECTED]';
   $this-Email-layout = 'default';
   $this-Email-template = 'test';
   $this-Email-sendAs = 'text';
   $this-Email-send();
}

Why? When it is not set, I was getting a subject of
=?UTF-8?B?V2VsY29tZ... with no body at all. Searching led me to:
  http://marcgrabanski.com/article/cakephp-email-encoding

I will try again with the nightly build on a different server.
Follow-up post with results shortly.

Gary



On Sat, Jun 28, 2008 at 6:59 AM, b logica [EMAIL PROTECTED] wrote:

 Well, did you at least try removing the 8859 one?

 On Fri, Jun 27, 2008 at 3:11 PM, bujanga [EMAIL PROTECTED] wrote:

 Yes, I saw that but do not know why. Instead of using the Email
 Component, I went back to sending the email via straight php. A little
 ugly but it gives me no problems. Headers from that show:

 Content-Type: text/plain; charset=UTF-8

 I will likely dig into this once I find time and am running on sweet RC2. 
 Yeah!

 Gary



 On Thu, Jun 26, 2008 at 10:55 AM, b logica [EMAIL PROTECTED] wrote:

 You have a 2nd Content-type header. One is 8859 and the other is UTF-8.


 


 


--~--~-~--~~~---~--~~
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 utf-8 body

2008-06-29 Thread bujanga

Email Component works fine on my production server with latest cake
build. hmm. That's all for tonight though.

Gary



On Sun, Jun 29, 2008 at 11:03 PM, bujanga [EMAIL PROTECTED] wrote:
 Yes, that is where I started. I then set it using charset in:
  function _ggisSendMail(){
   $this-Email-charset = 'iso-8859-15';
   $this-Email-to = '[EMAIL PROTECTED]';
   $this-Email-subject = 'Test';
   $this-Email-from = '[EMAIL PROTECTED]';
   $this-Email-layout = 'default';
   $this-Email-template = 'test';
   $this-Email-sendAs = 'text';
   $this-Email-send();
 }

 Why? When it is not set, I was getting a subject of
 =?UTF-8?B?V2VsY29tZ... with no body at all. Searching led me to:
  http://marcgrabanski.com/article/cakephp-email-encoding

 I will try again with the nightly build on a different server.
 Follow-up post with results shortly.

 Gary



 On Sat, Jun 28, 2008 at 6:59 AM, b logica [EMAIL PROTECTED] wrote:

 Well, did you at least try removing the 8859 one?

 On Fri, Jun 27, 2008 at 3:11 PM, bujanga [EMAIL PROTECTED] wrote:

 Yes, I saw that but do not know why. Instead of using the Email
 Component, I went back to sending the email via straight php. A little
 ugly but it gives me no problems. Headers from that show:

 Content-Type: text/plain; charset=UTF-8

 I will likely dig into this once I find time and am running on sweet RC2. 
 Yeah!

 Gary



 On Thu, Jun 26, 2008 at 10:55 AM, b logica [EMAIL PROTECTED] wrote:

 You have a 2nd Content-type header. One is 8859 and the other is UTF-8.


 


 



--~--~-~--~~~---~--~~
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 utf-8 body

2008-06-28 Thread b logica

Well, did you at least try removing the 8859 one?

On Fri, Jun 27, 2008 at 3:11 PM, bujanga [EMAIL PROTECTED] wrote:

 Yes, I saw that but do not know why. Instead of using the Email
 Component, I went back to sending the email via straight php. A little
 ugly but it gives me no problems. Headers from that show:

 Content-Type: text/plain; charset=UTF-8

 I will likely dig into this once I find time and am running on sweet RC2. 
 Yeah!

 Gary



 On Thu, Jun 26, 2008 at 10:55 AM, b logica [EMAIL PROTECTED] wrote:

 You have a 2nd Content-type header. One is 8859 and the other is UTF-8.


 


--~--~-~--~~~---~--~~
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 utf-8 body

2008-06-27 Thread bujanga

Yes, I saw that but do not know why. Instead of using the Email
Component, I went back to sending the email via straight php. A little
ugly but it gives me no problems. Headers from that show:

Content-Type: text/plain; charset=UTF-8

I will likely dig into this once I find time and am running on sweet RC2. Yeah!

Gary



On Thu, Jun 26, 2008 at 10:55 AM, b logica [EMAIL PROTECTED] wrote:

 You have a 2nd Content-type header. One is 8859 and the other is UTF-8.


--~--~-~--~~~---~--~~
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 utf-8 body

2008-06-20 Thread bujanga

I am finally trying to convert some older code over to the latest
build of cake and thought I would use the Email Component. Read
cookbook examples and did some searching as well. Still running into a
problem.

1. Email is sent and received.
2. Subject is fine
3. PROBLEM - body is garbage

Pretty certain it has to do with charset but I am not getting it right.

 function _ggisSendMail(){
$this-Email-charset = 'iso-8859-15';
$this-Email-to = '[EMAIL PROTECTED]';
$this-Email-subject = 'Test';
$this-Email-from = '[EMAIL PROTECTED]';
$this-Email-layout = 'default';
$this-Email-template = 'test';
$this-Email-sendAs = 'text';
$this-Email-send();
}

Before adding $this-Email-charset = 'iso-8859-15'; I was getting a subject of:
=?UTF-8?B?VGVzdA==?=

Now subject is OK but body is still garbage. My test.ctp is simply:
The test email was successfully sent.

I am using the nightly build (which solved some other problems) and
here are my relevant email headers:
X-Mailer: CakePHP Email Component
Content-Type: text/plain; charset=iso-8859-15
Content-Transfer-Encoding: 7bit
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: BASE64

Thanks for any clues,

Gary

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