$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('jfeuchter@gmail.com', 'Jurgen Feuchter')
->to($mail, $nombre)
->subject('¡Bienvenido a la mejor red social para pedir y dar rides!');
});