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