Notify on billing completion

This commit is contained in:
Hillel Coren 2016-12-18 21:39:25 +02:00
parent ea6fdeefa8
commit b0cfcf7748
2 changed files with 16 additions and 0 deletions

View File

@ -90,6 +90,14 @@ class ChargeRenewalInvoices extends Command
}
$this->info('Done');
if ($errorEmail = env('ERROR_EMAIL')) {
\Mail::raw('EOM', function ($message) use ($errorEmail) {
$message->to($errorEmail)
->from(CONTACT_EMAIL)
->subject('ChargeRenewalInvoices: Finished successfully');
});
}
}
/**

View File

@ -98,6 +98,14 @@ class SendRenewalInvoices extends Command
}
$this->info('Done');
if ($errorEmail = env('ERROR_EMAIL')) {
\Mail::raw('EOM', function ($message) use ($errorEmail) {
$message->to($errorEmail)
->from(CONTACT_EMAIL)
->subject('SendRenewalInvoices: Finished successfully');
});
}
}
/**