mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-14 15:13:29 +01:00
Add notifications for send emails for recurring
This commit is contained in:
parent
1dda57c1fd
commit
af502e9757
@ -67,6 +67,9 @@ class AutoBill implements ShouldQueue
|
|||||||
if ($invitation->contact && ! $invitation->contact->trashed() && strlen($invitation->contact->email) >= 1 && $invoice->client->getSetting('auto_email_invoice')) {
|
if ($invitation->contact && ! $invitation->contact->trashed() && strlen($invitation->contact->email) >= 1 && $invoice->client->getSetting('auto_email_invoice')) {
|
||||||
try {
|
try {
|
||||||
EmailEntity::dispatch($invitation, $invoice->company)->delay(rand(1, 2));
|
EmailEntity::dispatch($invitation, $invoice->company)->delay(rand(1, 2));
|
||||||
|
|
||||||
|
$invoice->entityEmailEvent($invitation, 'invoice', 'email_template_invoice');
|
||||||
|
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
nlog($e->getMessage());
|
nlog($e->getMessage());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user