protected function sendActivationEmail($user)
    {
        $code = implode('!', [$user->id, $user->getActivationCode()]);

        $link = $this->makeActivationUrl($code);

        $data = [
            'name' => $user->name,
            'link' => $link,
            'code' => $code
        ];

        Mail::send('rainlab.user::mail.activate', $data, function($message) use ($user) {
            $message->to($user->email, $user->name);
        });
    }
protected function sendActivationEmail($user)
    {
        $code = implode('!', [$user->id, $user->getActivationCode()]);

        $link = $this->makeActivationUrl($code);

        $data = [
            'name' => $user->name,
            'link' => $link,
            'code' => $code
        ];

        Mail::send('rainlab.user::mail.activate', $data, function($message) use ($user) {
            $message->to($user->email, $user->name);
        });
    }
protected function sendActivationEmail ( $ user ) { $ code = implode ( '!' , [ $ user -> id , $ user -> getActivationCode ( ) ] ) ; $ link = $ this -> makeActivationUrl ( $ code ) ; $ data = [ 'name' => $ user -> name , 'link' => $ link , 'code' => $ code ] ; Mail :: send ( 'rainlab.user::mail.activate' , $ data , function ( $ message ) use ( $ user ) { $ message -> to ( $ user -> email , $ user -> name ) ; } ) ; }
Sends the activation email to a user
@param  User $user
@return void
Sends the activation email to a user