From b50b5922fd4fff06f5e1a93bdb4a181890d6bff0 Mon Sep 17 00:00:00 2001 From: predominant Date: Sun, 17 Jan 2010 11:38:45 +1100 Subject: [PATCH] Adjusting EmailComponent Boundary creation to occur for all generated email. Fixes #14. --- cake/libs/controller/components/email.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cake/libs/controller/components/email.php b/cake/libs/controller/components/email.php index 8eb16fec4..1b13a95f8 100644 --- a/cake/libs/controller/components/email.php +++ b/cake/libs/controller/components/email.php @@ -505,8 +505,8 @@ class EmailComponent extends Object{ } } + $this->__createBoundary(); if (!empty($this->attachments)) { - $this->__createBoundary(); $this->__header[] = 'MIME-Version: 1.0'; $this->__header[] = 'Content-Type: multipart/mixed; boundary="' . $this->__boundary . '"'; $this->__header[] = 'This part of the E-mail should never be seen. If';