mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Set headerCharset in EmailComponent.
Apply patch from 'Shota Watanabe', that sets headerCharset on CakeEmail instances created from within EmailComponent. Fixes #3398
This commit is contained in:
parent
7402eea9eb
commit
b41705f59e
1 changed files with 1 additions and 0 deletions
|
@ -288,6 +288,7 @@ class EmailComponent extends Component {
|
|||
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)) {
|
||||
|
|
Loading…
Reference in a new issue