I am using laravel 5.6 and trying to send email to multiple email address. Here my code works for only one email. How can I use multiple email? I am using mailable
Here is my controller
public function sendEmail(Request $request)
{
Mail::send(new sendMail());
Session::flash('conf_email', 'ok');
return redirect('/send-email');
}
class SendMail extends Mailable
public function build(Request $request)
{
return $this->view('mail',['msg'=>$request->message])->to($request->to);
}
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire