From bde0bf028ab69e601e577f35ba6268c1bcb530b6 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Mon, 31 Dec 2018 01:06:59 -0600 Subject: [PATCH] mailer --- app/Console/Commands/calculatemarkettax.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/Console/Commands/calculatemarkettax.php b/app/Console/Commands/calculatemarkettax.php index 032027344..620978340 100644 --- a/app/Console/Commands/calculatemarkettax.php +++ b/app/Console/Commands/calculatemarkettax.php @@ -98,6 +98,16 @@ class CalculateMarketTax extends Command $bill->year = $start->year; $bill->save(); + + //Create a new esi container and authentication + $config = config('esi'); + $authentication = new EsiAuthentication([ + 'client_id' => $config['client_id'], + 'secret' => $config['secret'], + 'refresh_token' => $token->refresh_token, + ]); + $esi = new Eseye($authentication); + //Send a mail out with the bill $subject = 'Market Taxes Owed'; $body = 'Year ' . $start->year . ' ' .