Fixes for mailer

This commit is contained in:
David Bomba 2022-07-23 09:19:06 +10:00
parent cf992be71e
commit cf5791f589

View File

@ -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;