$mail comes from outside the closure, so it's not available inside its scope (unlike $message which is passed down as argument by the send() method). You need to pass it by using the use keyword (I believe the same will happen to $nombre) Mail::send('emails.registro_nuevo_usuario', $info, function($message) use($mail, $nombre) { $message->from('[email protected]',...
You need to set the From field of your mail to Sandy Sender <[email protected]>: ... From: Sandy Sender <[email protected]> To: [email protected] Subject: Hello! This is the body of the message. And use the address only ([email protected]) in Client.Mail. Alternatively, you can use my package Gomail: package main import ( "gopkg.in/gomail.v1"...
php,email,laravel,sendmail,mail-sender
You have passed $msg as an associative array, so the items of $msg array are available to the view by $key. That's mean in your case like $name, $email and so on. The app/views/emails/question.blade.php now will be like this {{ $name }} <br/> {{ $email }} <br/> {{ $message }}...