mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01: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
|
||||
*/
|
||||
protected $invoiceRepo;
|
||||
|
||||
|
||||
/**
|
||||
* @var accountRepository
|
||||
*/
|
||||
@ -80,6 +80,14 @@ class SendReminders extends Command
|
||||
}
|
||||
|
||||
$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…
Reference in New Issue
Block a user