Fixes for mailer
This commit is contained in:
parent
cf992be71e
commit
cf5791f589
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue