mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
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:
parent
d5ffdc288d
commit
e10d634f91
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue