cakephp/cakephp — pull request #564 by suzuki (2012-03-15 12:58:46+00:00)
Title: Add charset() / headerCharset() methods to CakeEmail class

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');
```