From 5de44bc25dcfd8eb7f4b9139ccf96e8cb9709ad4 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Sun, 30 Dec 2018 03:17:58 -0600 Subject: [PATCH] admincontroller --- app/Console/Commands/sendmail.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/app/Console/Commands/sendmail.php b/app/Console/Commands/sendmail.php index 8e6a0bf5c..1ede0e231 100644 --- a/app/Console/Commands/sendmail.php +++ b/app/Console/Commands/sendmail.php @@ -90,6 +90,18 @@ class SendMail extends Command $bill->tax_owed . '
Please remit to Spatial Forces'; try { + $esi->setBody([ + 'mail' => [ + 'body' => $body, + 'recipients' => [ + (int)$bill->character_id => 'character' + ], + 'subject' => $subject, + ] + ])->invoke('post', '/characters/{character_id}/mail/', [ + 'character_id'=> 93738489, + ]); + /* $esi->setBody([ 'body' => $body, 'recipients' => [ @@ -99,6 +111,7 @@ class SendMail extends Command ])->invoke('post', '/characters/{character_id}/mail/', [ 'character_id'=> 93738489, ]); + */ } catch(RequestFailedException $e) { //