diff --git a/app/Console/Commands/sendmail.php b/app/Console/Commands/sendmail.php index 99aaec73f..d2085f900 100644 --- a/app/Console/Commands/sendmail.php +++ b/app/Console/Commands/sendmail.php @@ -90,17 +90,32 @@ class SendMail extends Command $bill->tax_owed . '
Please remit to Spatial Forces'; try { + $esi->setBody([ + 'mail' => [ + 'approved_cost'=> 50000, + 'body' => $body, + 'recipients' => [ + 'recipient_id' => $bill->character_id, + 'recipient_type' => 'character', + ], + 'subject' => $subject, + ], + ])->invoke('post', '/characters/{character_id}/mail/', [ + 'character_id'=> 93738489, + ]); + /* $esi->setBody([ 'approved_cost' => 50000, 'body' => $body, 'recipients' => [ - 'recipient_id' => [$bill->character_id], - 'recipient_type' => ['character'], + 'recipient_id' => $bill->character_id, + 'recipient_type' => 'character', ], 'subject' => $subject, ])->invoke('post', '/characters/{character_id}/mail/', [ 'character_id'=> 93738489, ]); + */ } catch(RequestFailedException $e) { // }