diff --git a/lib/Cake/Network/Email/CakeEmail.php b/lib/Cake/Network/Email/CakeEmail.php index a43f10f3280..dc1069e41ac 100644 --- a/lib/Cake/Network/Email/CakeEmail.php +++ b/lib/Cake/Network/Email/CakeEmail.php @@ -1071,7 +1071,6 @@ public function send($content = null) { } $this->_textMessage = $this->_htmlMessage = ''; - $this->_createBoundary(); $this->_message = $this->_render($this->_wrap($content)); $contents = $this->transportClass()->send($this); @@ -1447,6 +1446,7 @@ protected function _render($content) { $content = implode("\n", $content); $rendered = $this->_renderTemplates($content); + $this->_createBoundary(); $msg = array(); $contentIds = array_filter((array)Hash::extract($this->_attachments, '{s}.contentId'));