mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 12:54:31 -04:00
Notify on billing completion
This commit is contained in:
parent
ea6fdeefa8
commit
b0cfcf7748
@ -90,6 +90,14 @@ class ChargeRenewalInvoices 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('ChargeRenewalInvoices: Finished successfully');
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -98,6 +98,14 @@ class SendRenewalInvoices 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('SendRenewalInvoices: Finished successfully');
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user