From 2be5b8e35740717c8ad90ab0d6dac57a1d3b74d5 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 30 Dec 2019 22:45:10 +0800 Subject: [PATCH] update --- app/Http/Controllers/Admin/MailController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/Admin/MailController.php b/app/Http/Controllers/Admin/MailController.php index 8a8ae690..841adc21 100644 --- a/app/Http/Controllers/Admin/MailController.php +++ b/app/Http/Controllers/Admin/MailController.php @@ -24,12 +24,12 @@ class MailController extends Controller foreach ($users as $user) { SendEmail::dispatch([ 'email' => $user->email, - 'subject' => $subject, + 'subject' => $request->input('subject'), 'template_name' => 'mail.sendCustom', 'template_value' => [ 'name' => config('v2board.app_name', 'V2Board'), 'url' => config('v2board.app_url'), - 'content' => $content + 'content' => $request->input('content') ] ]); }