From: Tim Düsterhus Date: Mon, 15 Feb 2021 11:27:17 +0000 (+0100) Subject: Set explicit Message-ID in SendNewPasswordWorker X-Git-Tag: 5.4.0_Alpha_1~252^2~3 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=24a87912f428e6f4573f7dbd0fc3607b8e42edcf;p=GitHub%2FWoltLab%2FWCF.git Set explicit Message-ID in SendNewPasswordWorker --- diff --git a/wcfsetup/install/files/lib/system/worker/SendNewPasswordWorker.class.php b/wcfsetup/install/files/lib/system/worker/SendNewPasswordWorker.class.php index 071f20ac32..35bf72dd2e 100644 --- a/wcfsetup/install/files/lib/system/worker/SendNewPasswordWorker.class.php +++ b/wcfsetup/install/files/lib/system/worker/SendNewPasswordWorker.class.php @@ -125,6 +125,12 @@ class SendNewPasswordWorker extends AbstractWorker protected function sendLink(User $user) { $email = new Email(); + $email->setMessageID(\sprintf( + 'com.woltlab.wcf.sendNewPassword/%d/%d/%s', + $user->userID, + TIME_NOW, + \bin2hex(\random_bytes(8)) + )); $email->addRecipient(new UserMailbox($user)); $email->setSubject($user->getLanguage()->getDynamicVariable('wcf.acp.user.sendNewPassword.mail.subject')); $email->setBody(new MimePartFacade([