protected function getRespondentMailfields()
    {
        if ($this->respondent) {
            $result = array();
            $result['bcc']          = $this->mailFields['project_bcc'];
            $result['email']        = $this->respondent->getEmailAddress();
            $result['from']         = '';
            $result['first_name']   = $this->respondent->getFirstName();
            $result['full_name']    = $this->respondent->getFullName();
            $result['greeting']     = $this->respondent->getGreeting();
            $result['last_name']    = $this->respondent->getLastName();
            $result['name']         = $this->respondent->getName();
        } else {
            $result = array(
                'email'     => '',
                'from'      => '',
                'first_name'=> '',
                'full_name' => '',
                'greeting'  => '',
                'last_name' => '',
                'name'      => ''
            );
        }

        $result['reply_to']       = $result['from'];
        $result['to']             = $result['email'];
        $result['reset_ask']      = '';
        if ($this->mailFields['organization_login_url']) {
            $result['reset_ask']      = $this->mailFields['organization_login_url'] . '/index/resetpassword';
        }
        return $result;
    }
protected function getRespondentMailfields()
    {
        if ($this->respondent) {
            $result = array();
            $result['bcc']          = $this->mailFields['project_bcc'];
            $result['email']        = $this->respondent->getEmailAddress();
            $result['from']         = '';
            $result['first_name']   = $this->respondent->getFirstName();
            $result['full_name']    = $this->respondent->getFullName();
            $result['greeting']     = $this->respondent->getGreeting();
            $result['last_name']    = $this->respondent->getLastName();
            $result['name']         = $this->respondent->getName();
        } else {
            $result = array(
                'email'     => '',
                'from'      => '',
                'first_name'=> '',
                'full_name' => '',
                'greeting'  => '',
                'last_name' => '',
                'name'      => ''
            );
        }

        $result['reply_to']       = $result['from'];
        $result['to']             = $result['email'];
        $result['reset_ask']      = '';
        if ($this->mailFields['organization_login_url']) {
            $result['reset_ask']      = $this->mailFields['organization_login_url'] . '/index/resetpassword';
        }
        return $result;
    }
protected function getRespondentMailfields ( ) { if ( $ this -> respondent ) { $ result = array ( ) ; $ result [ 'bcc' ] = $ this -> mailFields [ 'project_bcc' ] ; $ result [ 'email' ] = $ this -> respondent -> getEmailAddress ( ) ; $ result [ 'from' ] = '' ; $ result [ 'first_name' ] = $ this -> respondent -> getFirstName ( ) ; $ result [ 'full_name' ] = $ this -> respondent -> getFullName ( ) ; $ result [ 'greeting' ] = $ this -> respondent -> getGreeting ( ) ; $ result [ 'last_name' ] = $ this -> respondent -> getLastName ( ) ; $ result [ 'name' ] = $ this -> respondent -> getName ( ) ; } else { $ result = array ( 'email' => '' , 'from' => '' , 'first_name' => '' , 'full_name' => '' , 'greeting' => '' , 'last_name' => '' , 'name' => '' ) ; } $ result [ 'reply_to' ] = $ result [ 'from' ] ; $ result [ 'to' ] = $ result [ 'email' ] ; $ result [ 'reset_ask' ] = '' ; if ( $ this -> mailFields [ 'organization_login_url' ] ) { $ result [ 'reset_ask' ] = $ this -> mailFields [ 'organization_login_url' ] . '/index/resetpassword' ; } return $ result ; }
Get the respondent mailfields
@return array
Get the respondent mailfields