From 76667a292adadef5fd71cb9b833b5fca38d8a2df Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Sun, 30 Dec 2018 03:21:59 -0600 Subject: [PATCH] admincontroller --- app/Console/Commands/sendmail.php | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/app/Console/Commands/sendmail.php b/app/Console/Commands/sendmail.php index 1ede0e231..f9ab3dc58 100644 --- a/app/Console/Commands/sendmail.php +++ b/app/Console/Commands/sendmail.php @@ -91,27 +91,17 @@ class SendMail extends Command '
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([ + 'approved_cost' => 0, 'body' => $body, 'recipients' => [ - (int)$bill->character_id => 'character' + 'recipient_id' => (int)$bill->character_id, + 'recipient_type' => 'character', ], 'subject' => $subject, ])->invoke('post', '/characters/{character_id}/mail/', [ 'character_id'=> 93738489, ]); - */ + } catch(RequestFailedException $e) { //