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)
|
||||
*/
|
||||
App::import('Core', 'Multibyte');
|
||||
App::import('Core', 'String');
|
||||
|
||||
/**
|
||||
* EmailComponent
|
||||
|
@ -588,7 +589,7 @@ class EmailComponent extends Object{
|
|||
|
||||
if ($this->messageId !== false) {
|
||||
if ($this->messageId === true) {
|
||||
$headers['Message-ID'] = '<' . String::UUID() . '@' . env('HTTP_HOST') . '>';
|
||||
$headers['Message-ID'] = '<' . String::uuid() . '@' . env('HTTP_HOST') . '>';
|
||||
} else {
|
||||
$headers['Message-ID'] = $this->messageId;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue