From cf5791f589c4e282264dfee1edb87bbd6af1f8ca Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sat, 23 Jul 2022 09:19:06 +1000 Subject: [PATCH] Fixes for mailer --- app/Jobs/Mail/NinjaMailerJob.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Jobs/Mail/NinjaMailerJob.php b/app/Jobs/Mail/NinjaMailerJob.php index 2f69ef648863..b70664607919 100644 --- a/app/Jobs/Mail/NinjaMailerJob.php +++ b/app/Jobs/Mail/NinjaMailerJob.php @@ -329,6 +329,10 @@ class NinjaMailerJob implements ShouldQueue if(Ninja::isHosted() && $this->company->account && $this->company->account->is_flagged) return true; + /* If the account is verified, we allow emails to flow */ + if(Ninja::isHosted() && $this->company->account && $this->company->account->is_verified_account) + return false; + /* Ensure the user has a valid email address */ if(!str_contains($this->nmo->to_user->email, "@")) return true;