mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Adding patch for multipart boundary formatting (thanks sdevore)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4600 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
a6d0b4b844
commit
7c65f4c6a2
1 changed files with 2 additions and 2 deletions
|
@ -228,7 +228,7 @@ class EmailComponent extends Object{
|
|||
}
|
||||
|
||||
if (!is_null($this->__boundary)) {
|
||||
$this->__message .= '--' . $this->__boundary . '--' . $this->_newLine . $this->_newLine;
|
||||
$this->__message .= $this->_newLine .'--' . $this->__boundary . '--' . $this->_newLine . $this->_newLine;
|
||||
}
|
||||
|
||||
if ($this->_debug){
|
||||
|
@ -272,7 +272,7 @@ class EmailComponent extends Object{
|
|||
$View->layoutPath = 'email' . DS . 'text';
|
||||
$msg .= $View->renderLayout($content) . $this->_newLine;
|
||||
|
||||
$msg .= '--' . $this->__boundary . $this->_newLine;
|
||||
$msg .= $this->_newLine. '--' . $this->__boundary . $this->_newLine;
|
||||
$msg .= 'Content-Type: text/html; charset=' . $this->charset . $this->_newLine;
|
||||
$msg .= 'Content-Transfer-Encoding: 8bit' . $this->_newLine;
|
||||
$content = $View->renderElement('email' . DS . 'html' . DS . $this->template, array('content' => $content), true);
|
||||
|
|
Loading…
Reference in a new issue