From e10d634f91a0dd701c3ab06dfbadb9f7dfb6ce29 Mon Sep 17 00:00:00 2001 From: ADmad Date: Sun, 19 Sep 2010 03:54:32 +0530 Subject: [PATCH] Mails sent using php's "mail()" function now have header fields terminated by CRLF and body too contains CR and LF only as combination CRLF in compliannce with RFC 2822. Closes #1071 --- cake/libs/controller/components/email.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cake/libs/controller/components/email.php b/cake/libs/controller/components/email.php index 399600402..06e6210d8 100755 --- a/cake/libs/controller/components/email.php +++ b/cake/libs/controller/components/email.php @@ -785,8 +785,8 @@ class EmailComponent extends Object{ * @access private */ function _mail() { - $header = implode("\n", $this->__header); - $message = implode("\n", $this->__message); + $header = implode("\r\n", $this->__header); + $message = implode("\r\n", $this->__message); if (is_array($this->to)) { $to = implode(', ', array_map(array($this, '_formatAddress'), $this->to)); } else {