Skip to content

Commit

Permalink
Set headerCharset in EmailComponent.
Browse files Browse the repository at this point in the history
Apply patch from 'Shota Watanabe', that sets headerCharset on CakeEmail
instances created from within EmailComponent.

Fixes #3398
  • Loading branch information
markstory committed Nov 26, 2012
1 parent 7402eea commit b41705f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Cake/Controller/Component/EmailComponent.php
Expand Up @@ -288,6 +288,7 @@ public function initialize(Controller $controller) {
public function send($content = null, $template = null, $layout = null) {
$lib = new CakeEmail();
$lib->charset = $this->charset;
$lib->headerCharset = $this->charset;

$lib->from($this->_formatAddresses((array)$this->from));
if (!empty($this->to)) {
Expand Down

0 comments on commit b41705f

Please sign in to comment.