one more test

This commit is contained in:
LI JIAHAO
2017-06-24 11:44:08 +08:00
parent 1b5fdcea7e
commit e8e23b1188
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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"] = "<h1>PHP测试</h1>";
$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";
+1 -1
View File
@@ -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);