This commit is contained in:
root 2019-12-30 22:45:10 +08:00
parent 76ce89c17f
commit 2be5b8e357

View File

@ -24,12 +24,12 @@ class MailController extends Controller
foreach ($users as $user) { foreach ($users as $user) {
SendEmail::dispatch([ SendEmail::dispatch([
'email' => $user->email, 'email' => $user->email,
'subject' => $subject, 'subject' => $request->input('subject'),
'template_name' => 'mail.sendCustom', 'template_name' => 'mail.sendCustom',
'template_value' => [ 'template_value' => [
'name' => config('v2board.app_name', 'V2Board'), 'name' => config('v2board.app_name', 'V2Board'),
'url' => config('v2board.app_url'), 'url' => config('v2board.app_url'),
'content' => $content 'content' => $request->input('content')
] ]
]); ]);
} }