mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Send email when SendReminders finishes
This commit is contained in:
parent
6371339805
commit
2cdf369c04
@ -32,7 +32,7 @@ class SendReminders extends Command
|
|||||||
* @var InvoiceRepository
|
* @var InvoiceRepository
|
||||||
*/
|
*/
|
||||||
protected $invoiceRepo;
|
protected $invoiceRepo;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var accountRepository
|
* @var accountRepository
|
||||||
*/
|
*/
|
||||||
@ -80,6 +80,14 @@ class SendReminders extends Command
|
|||||||
}
|
}
|
||||||
|
|
||||||
$this->info('Done');
|
$this->info('Done');
|
||||||
|
|
||||||
|
if ($errorEmail = env('ERROR_EMAIL')) {
|
||||||
|
\Mail::raw('EOM', function ($message) use ($errorEmail) {
|
||||||
|
$message->to($errorEmail)
|
||||||
|
->from(CONTACT_EMAIL)
|
||||||
|
->subject('SendReminders: Finished successfully');
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user