protected function loadMailer()
    {
        $this->mailTarget = false;

        if (isset($this->formData['gct_target']) && isset($this->mailTargets[$this->formData['gct_target']])) {
            $this->mailTarget = $this->formData['gct_target'];
        } else {
            reset($this->mailTargets);
            $this->mailTarget = key($this->mailTargets);
        }
        $this->mailer = $this->loader->getMailLoader()->getMailer($this->mailTarget);
    }
protected function loadMailer()
    {
        $this->mailTarget = false;

        if (isset($this->formData['gct_target']) && isset($this->mailTargets[$this->formData['gct_target']])) {
            $this->mailTarget = $this->formData['gct_target'];
        } else {
            reset($this->mailTargets);
            $this->mailTarget = key($this->mailTargets);
        }
        $this->mailer = $this->loader->getMailLoader()->getMailer($this->mailTarget);
    }
protected function loadMailer ( ) { $ this -> mailTarget = false ; if ( isset ( $ this -> formData [ 'gct_target' ] ) && isset ( $ this -> mailTargets [ $ this -> formData [ 'gct_target' ] ] ) ) { $ this -> mailTarget = $ this -> formData [ 'gct_target' ] ; } else { reset ( $ this -> mailTargets ) ; $ this -> mailTarget = key ( $ this -> mailTargets ) ; } $ this -> mailer = $ this -> loader -> getMailLoader ( ) -> getMailer ( $ this -> mailTarget ) ; }
Loads the correct mailer
Loads the correct mailer