1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Ensure valid email present before attempting to send

This commit is contained in:
David Bomba 2021-10-08 21:54:38 +11:00
parent c2599076bd
commit 3319326d88

View File

@ -257,6 +257,8 @@ class NinjaMailerJob implements ShouldQueue
if(Ninja::isHosted() && $this->company->account->emailQuotaExceeded())
return true;
if(!str_contains($this->nmo->to_user->email, "@"))
return true;
return false;
}