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:
nate 2007-03-08 02:01:29 +00:00
parent a6d0b4b844
commit 7c65f4c6a2

View file

@ -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);