public function getUserEmail(GenericEvent $event)
    {
        $user = $event->getSubject();

        if (!$user instanceof UserInterface) {
            throw new \InvalidArgumentException('MailerSubscriber event is expected to contain an instance of User');
        }

        $this->mailAddress = $user->getEmail();
        $this->username = $user->getUsername();
    }