mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-12 14:12:44 +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')) {
|
||||
try {
|
||||
EmailEntity::dispatch($invitation, $invoice->company)->delay(rand(1, 2));
|
||||
|
||||
$invoice->entityEmailEvent($invitation, 'invoice', 'email_template_invoice');
|
||||
|
||||
} catch (\Exception $e) {
|
||||
nlog($e->getMessage());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user