我想使用Laravel发送电子邮件,并成功使用此代码
Mail::to($email)->send(new SendMail($name))
现在,我想使用此代码发送更多参数,例如主题,但没有用。 没有错误消息,但电子邮件未发送。
Mail::send(new SendMail($name function($message) use ($email){
$message->to($email)->subject('Verify your account');
}));
有什么建议吗?预先感谢!