From c4c52af1d3a05bbae2ce00a3cca2b08f5f11b1da Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Mon, 11 May 2020 00:02:11 -0500 Subject: [PATCH] removed eve mail library as it wasn't utilized --- app/Library/Mail/Helper/EveMailHelper.php | 68 ----------------------- 1 file changed, 68 deletions(-) delete mode 100644 app/Library/Mail/Helper/EveMailHelper.php diff --git a/app/Library/Mail/Helper/EveMailHelper.php b/app/Library/Mail/Helper/EveMailHelper.php deleted file mode 100644 index c5472e898..000000000 --- a/app/Library/Mail/Helper/EveMailHelper.php +++ /dev/null @@ -1,68 +0,0 @@ -HaveEsiScope($sender, 'esi-mail.send_mail.v1')) { - Log::critical('Could not find correct scope for the token for the mailer.'); - return null; - } - - //Retrieve token from from the database for the sender - $token = $esiHelper->GetRefreshToken($sender); - - //Create the ESI authentication container - $esi = $esiHelper->SetupEsiAuthentication($token); - - //Attempt to send the mail - try { - $esi->setBody([ - 'approved_cost' => 100, - 'body' => $this->body, - 'recipients' => [[ - 'recipient_id' => $this->recipient, - 'recipient_type' => $this->recipient_type, - ]], - 'subject' => $this->subject, - ])->invoke('post', '/characters/{character_id}/mail/', [ - 'character_id'=> $this->sender, - ]); - } catch(RequestFailedException $e) { - Log::warning($e); - return null; - } - } -} \ No newline at end of file