mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
parent
ff0119ba6f
commit
443ff92280
1 changed files with 2 additions and 1 deletions
|
@ -18,6 +18,7 @@
|
||||||
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
|
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
|
||||||
*/
|
*/
|
||||||
App::import('Core', 'Multibyte');
|
App::import('Core', 'Multibyte');
|
||||||
|
App::import('Core', 'String');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* EmailComponent
|
* EmailComponent
|
||||||
|
@ -588,7 +589,7 @@ class EmailComponent extends Object{
|
||||||
|
|
||||||
if ($this->messageId !== false) {
|
if ($this->messageId !== false) {
|
||||||
if ($this->messageId === true) {
|
if ($this->messageId === true) {
|
||||||
$headers['Message-ID'] = '<' . String::UUID() . '@' . env('HTTP_HOST') . '>';
|
$headers['Message-ID'] = '<' . String::uuid() . '@' . env('HTTP_HOST') . '>';
|
||||||
} else {
|
} else {
|
||||||
$headers['Message-ID'] = $this->messageId;
|
$headers['Message-ID'] = $this->messageId;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue