src/Sulu/Bundle/SecurityBundle/Controller/ResettingController.php
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;
    }
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;
    }
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 ; }
Returns the sender's email address.

@param Request $request

@return string
Returns the sender s email address .