$p->email ), function ( $messa">
时间:2021-07-01 10:21:17 帮助过:40人阅读
    function something($p)
    {
        Mail::send('view', array(
            "email" => $p->email
        ), function ( $message) 
        {
            $message->to($p->email, $p->name)->subject('hello');
        })
    }
怎么在laravel框架下Mail::send的第三个参数闭包内访问闭包外的变量?
    function something($p)
    {
        Mail::send('view', array(
            "email" => $p->email
        ), function ( $message) 
        {
            $message->to($p->email, $p->name)->subject('hello');
        })
    }
怎么在laravel框架下Mail::send的第三个参数闭包内访问闭包外的变量?
function () use ($var) {
http://php.com/manual/en/functions.anonymous.php#example-186
如何在 Laravel 中使用 SMTP 发送邮件(适用于 163、QQ、Gmail 等)