protected function getSenderAddress(Request $request)
    {
        $sender = $this->getParameter('sulu_security.reset_password.mail.sender');

        if (!$sender || !$this->isEmailValid($sender)) {
            $sender = 'no-reply@' . $request->getHost();
        }

        return $sender;
    }