From 59e260b7f801715f26ff20808e68ac41d56b8f6c Mon Sep 17 00:00:00 2001 From: condor2 Date: Fri, 13 Sep 2024 11:31:34 +0300 Subject: [PATCH] Update mail.php --- upload/system/library/mail.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upload/system/library/mail.php b/upload/system/library/mail.php index 3b5f2a63..65c6dc2f 100644 --- a/upload/system/library/mail.php +++ b/upload/system/library/mail.php @@ -95,7 +95,7 @@ public function send() { if ($this->protocol != 'mail') { $header .= 'To: <' . $to . '>' . $eol; $header .= 'Subject: =?UTF-8?B?' . base64_encode($this->subject) . '?=' . $eol; - $header .= 'Message-ID: <' . base_convert(str_replace(['.', ' '], '', microtime()), 10, 36) . '.' . base_convert(bin2hex(openssl_random_pseudo_bytes(8)), 16, 36) . substr($this->from, strrpos($this->from, '@')) . '>' . PHP_EOL; + $header .= 'Message-ID: <' . base_convert(str_replace(['.', ' '], '', microtime()), 10, 36) . '.' . base_convert(bin2hex(openssl_random_pseudo_bytes(8)), 16, 36) . substr($this->from, strrpos($this->from, '@')) . '>' . $eol; } $header .= 'Date: ' . date('D, d M Y H:i:s O') . $eol;