Skip to content

Commit

Permalink
allow callbacks to modify attachements by moving the decision to calc…
Browse files Browse the repository at this point in the history
…ulate boundary value into the correct position inside _render()
  • Loading branch information
euromark committed Jun 26, 2013
1 parent 468eb94 commit 0ca1ba3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Network/Email/CakeEmail.php
Expand Up @@ -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);
Expand Down Expand Up @@ -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'));
Expand Down

0 comments on commit 0ca1ba3

Please sign in to comment.