mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Fixes #2970, bad encoding in email send as text
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5662 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
3a4b960520
commit
39612a9bad
1 changed files with 3 additions and 0 deletions
|
@ -423,6 +423,9 @@ class EmailComponent extends Object{
|
|||
$this->__createBoundary();
|
||||
$this->__header .= 'MIME-Version: 1.0' . $this->_newLine;
|
||||
$this->__header .= 'Content-Type: multipart/related; boundary="' . $this->__boundary . '"' . $this->_newLine;
|
||||
} elseif ($this->sendAs === 'text') {
|
||||
$this->__header .= 'Content-Type: text/plain; charset=' . $this->charset . $this->_newLine;
|
||||
$this->__header .= 'Content-Transfer-Encoding: 8bit' . $this->_newLine;
|
||||
} elseif ($this->sendAs === 'html') {
|
||||
$this->__header .= 'Content-Type: text/html; charset=' . $this->charset . $this->_newLine;
|
||||
$this->__header .= 'Content-Transfer-Encoding: 8bit' . $this->_newLine;
|
||||
|
|
Loading…
Add table
Reference in a new issue