Laravel - 发送电子邮件后不返回查看状态

时间:2017-09-11 13:45:12

标签: php laravel

public function sendSubMail(Request $request){
    $data = ['text' => $request->input('message'), 'subject' => $request->input('subject')];
    $emails = DB::table('emails')->get();
    for ($i=0; $i < count($emails); $i++) { 
        Mail::to($emails[$i])->queue(new Newsletter($data));
    }
    return view('emailSent', ['sub' => 'Emails successfully sent']);
}

电子邮件正在发送但发送后却没有返回指定的视图

0 个答案:

没有答案