user->email; $address = route('index'); $ipAddress = $event->ipAddress; // send email. try { Mail::send( ['emails.registered-html', 'emails.registered'], ['address' => $address, 'ip' => $ipAddress], function (Message $message) use ($email) { $message->to($email, $email)->subject('Welcome to Firefly III! '); } ); } catch (Swift_TransportException $e) { Log::error($e->getMessage()); } return true; } }