diff --git a/app/Http/Controllers/AdminController.php b/app/Http/Controllers/AdminController.php index bb63dad..2a8c6ca 100644 --- a/app/Http/Controllers/AdminController.php +++ b/app/Http/Controllers/AdminController.php @@ -175,11 +175,11 @@ class AdminController extends Controller } // This part gonna work with https://github.com/NEUP-Net-Depart/email-daemon/ - public function testEmail() + public function testEmail(Request $request) { $conn = new JsonRpcClient("127.0.0.1", 65525); $mailSettings = []; - $mailSettings["Body"] = "

PHP测试

"; + $mailSettings["Body"] = view('auth.checkLetter')->with(['host' => $request->server("HTTP_HOST"), 'token' => "sometesttokenhhhh"])->render(); $mailSettings["To"] = "wangkule@cool2645.com"; $mailSettings["Subject"] = "PHP 邮件测试"; $mailSettings["SendID"] = "notify"; diff --git a/app/JsonRpcClient.php b/app/JsonRpcClient.php index b3de7ee..c55347a 100644 --- a/app/JsonRpcClient.php +++ b/app/JsonRpcClient.php @@ -56,7 +56,7 @@ class JsonRpcClient { $jsonRequest = json_encode($request); - echo $jsonRequest . PHP_EOL; + //echo $jsonRequest . PHP_EOL; $this->__open(); socket_bind($this->socket, $this->address);