From 28a36282c5870f274b7f6b1679b2ee6f1aa9d1d7 Mon Sep 17 00:00:00 2001 From: phpnut Date: Fri, 19 Oct 2007 04:08:50 +0000 Subject: [PATCH] Fixes #3393, Email headers get appended each time send() is called git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5791 3807eeeb-6ff5-0310-8944-8be069107fe0 --- 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 1eaa35f1a..2dfb0a542 100644 --- a/cake/libs/controller/components/email.php +++ b/cake/libs/controller/components/email.php @@ -419,7 +419,7 @@ class EmailComponent extends Object{ * @access private */ function __createHeader() { - $this->__header .= 'From: ' . $this->__formatAddress($this->from) . $this->_newLine; + $this->__header = 'From: ' . $this->__formatAddress($this->from) . $this->_newLine; if (!empty($this->replyTo)) { $this->__header .= 'Reply-To: ' . $this->__formatAddress($this->replyTo) . $this->_newLine;