1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00

Analytics

This commit is contained in:
David Bomba 2021-04-25 08:18:35 +10:00
parent f1eafb699e
commit f98c618548

View File

@ -87,8 +87,13 @@ class NinjaMailerJob implements ShouldQueue
//send email
try {
nlog("trying to send");
Mail::to($this->nmo->to_user->email)
->send($this->nmo->mailable);
LightLogs::create(new EmailSuccess($this->nmo->company_key->company_key))
->batch();
} catch (\Exception $e) {
nlog("error failed with {$e->getMessage()}");
@ -181,8 +186,6 @@ class NinjaMailerJob implements ShouldQueue
$message->getHeaders()->addTextHeader('GmailToken', $token);
});
LightLogs::create(new EmailSuccess($this->nmo->company_key->company_key))
->batch();
}
private function logMailError($errors, $recipient_object)