laravel邮件发送
Mail::send('emails.EmailGroupSend',['data' => $data],function($message){
$to = ['1296853739@qq.com'];
$message ->to($to)->subject('回复');//这是邮件标题
});
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
{{ $data['msg'] //读取传入的参数 }}
</body>
</html>
当邮件配置好的时候只需要这样就可以发送了