public function getMailConfig($configName)
    {
        if (isset($this->emailConfig[$configName]) && $this->emailConfig[$configName] != "") {
            return $this->emailConfig[$configName];
        } else {
            // Check defaults

            switch ($configName) {
                case 'smtp_address':
                    return "localhost";
                case 'default_mailto_address':
                    return null;
                case 'smtp_port':
                    return '25';
                case 'smtp_encryption':
                    return null;
                default:
                    return "";
            }
        }
    }
public function getMailConfig($configName)
    {
        if (isset($this->emailConfig[$configName]) && $this->emailConfig[$configName] != "") {
            return $this->emailConfig[$configName];
        } else {
            // Check defaults

            switch ($configName) {
                case 'smtp_address':
                    return "localhost";
                case 'default_mailto_address':
                    return null;
                case 'smtp_port':
                    return '25';
                case 'smtp_encryption':
                    return null;
                default:
                    return "";
            }
        }
    }
public function getMailConfig ( $ configName ) { if ( isset ( $ this -> emailConfig [ $ configName ] ) && $ this -> emailConfig [ $ configName ] != "" ) { return $ this -> emailConfig [ $ configName ] ; } else { // Check defaults switch ( $ configName ) { case 'smtp_address' : return "localhost" ; case 'default_mailto_address' : return null ; case 'smtp_port' : return '25' ; case 'smtp_encryption' : return null ; default : return "" ; } } }
Return a specific configuration value by key.
@param $configName
@return null|string
Return a specific configuration value by key .