1
0
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:
Hillel Coren 2017-01-31 13:33:46 +02:00
parent 6371339805
commit 2cdf369c04

View File

@ -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');
});
}
}
/**