From 5fc58ac24b829a40325454608f33e56edfafe77a Mon Sep 17 00:00:00 2001 From: kumy Date: Sun, 15 Oct 2023 20:42:52 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20Really=20send=20mail=20on=20production?= =?UTF-8?q?=20instance=20=F0=9F=A4=A3=20(#880)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- website/app/GeoKrety/Email/BasePHPMailer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/app/GeoKrety/Email/BasePHPMailer.php b/website/app/GeoKrety/Email/BasePHPMailer.php index 0d0cc96ce3..54503a01b7 100644 --- a/website/app/GeoKrety/Email/BasePHPMailer.php +++ b/website/app/GeoKrety/Email/BasePHPMailer.php @@ -140,7 +140,7 @@ protected function setTo(?User $user, bool $force = false, bool $realRecipient = $this->recipients[] = $_user; } // } - if ($realRecipient) { + if ($realRecipient or GK_IS_PRODUCTION) { if (!$user->hasEmail() or (!$user->isEmailValid() and !$force)) { return; }