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
This commit is contained in:
phpnut 2007-10-19 04:08:50 +00:00
parent d9f5bb7a35
commit 28a36282c5

View file

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