From c1e0eb1b3635f4faef30ae3332495a7328a011dd Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Fri, 31 Jan 2020 20:26:30 -0600 Subject: [PATCH] updated moon mailer to record mail sent when it's sent to eve api --- app/Library/Esi/Mail.php | 48 ---------------------------------------- 1 file changed, 48 deletions(-) delete mode 100644 app/Library/Esi/Mail.php diff --git a/app/Library/Esi/Mail.php b/app/Library/Esi/Mail.php deleted file mode 100644 index 861ec7901..000000000 --- a/app/Library/Esi/Mail.php +++ /dev/null @@ -1,48 +0,0 @@ -GetRefreshToken($config['primary']); - //Create the ESI authentication container - $esi = $esiHelper->SetupEsiAuthentication($token); - - //Try to send the mail - try { - $esi->setBody([ - 'approved_cost' => 0, - 'body' => $body, - 'recipients' => [[ - 'recipient_id' => (int)$recipient, - 'recipient_type' => $rType, - ]], - 'subject' => $subject, - ])->invoke('post', '/characters/{character_id}/mail/', [ - 'character_id'=> $config['primary'], - ]); - } catch(RequestFailedException $e) { - return 1; - } - - return 0; - } -} - -?> \ No newline at end of file