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

This commit is contained in:
ADmad 2010-09-19 03:54:32 +05:30
parent d5ffdc288d
commit e10d634f91

View file

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