cakephp/cakephp — pull request #567 by suzuki (2012-03-16 13:02:40+00:00)
Title: Add charset() / headerCharset() methods to CakeEmail class

-----------------------

original pull request was #564. change branch to 2.2.

-----------------------

CakeEmail have many setter / getter methods for mail headers.
But, charset and headerChaset have a only property.

This is a strange. see below :

* now

```php
$email = new CakeEmail;

$email->charset = 'ISO-2022-JP'; // strange here
$email->headerCharset = 'ISO-2022-JP'; // strange here

$email->from('suzuki@example.com');
$email->to('suzuki@example.jp);
$emaul->subject('TEST MAIL');
$email->send('TEST MAIL BODY');
```

* my patch

```php
$email = new CakeEmail;

$email->charset('ISO-2022-JP'); // this is nice accessor.
$email->headerCharset('ISO-2022-JP'); // this is nice accessor.

$email->from('suzuki@example.com');
$email->to('suzuki@example.jp);
$emaul->subject('TEST MAIL');
$email->send('TEST MAIL BODY');
```