Skip to content

Commit

Permalink
Update mail.php
Browse files Browse the repository at this point in the history
  • Loading branch information
condor2 authored Sep 12, 2024
1 parent 72e63c2 commit 5f96744
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions upload/system/library/mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +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 .= 'Date: ' . date('D, d M Y H:i:s O') . $eol;
Expand Down

0 comments on commit 5f96744

Please sign in to comment.