问题描述
最近我将项目更改为新服务器,当我注册用户时,它在发送邮件时抛出错误。
我的代码是这个。
function test(Request $request) {
$user = User::findOrFail(11);
Mail::send('front.test',['user' => $user],function ($m) use ($user) {
$m->from('MYDOMAIN','Your Application');
$m->to('abhishekvvvvv@gmail.com','Abhishek')->subject('Your Reminder!');
});
}
和ID为11的用户
我发现了一些可以解决我问题的 here 。但是我不在代码中使用&& $prevIoUs
的地方。
感谢您的帮助。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)