public function setConfiguration($config)
    {
        $this->setHeloHostname($config['helo_hostname']);
        $this->setFrom($config['from_address'], $config['from_name']);
        $this->setHost($config['host']);
        $this->setPort($config['port']);
        $this->setSecure($config['secure']);

        $this->setAuth((int)$config['auth'] === 1);
        $this->setUser($config['username']);
        $this->setPass($config['password']);
    }
public function setConfiguration($config)
    {
        $this->setHeloHostname($config['helo_hostname']);
        $this->setFrom($config['from_address'], $config['from_name']);
        $this->setHost($config['host']);
        $this->setPort($config['port']);
        $this->setSecure($config['secure']);

        $this->setAuth((int)$config['auth'] === 1);
        $this->setUser($config['username']);
        $this->setPass($config['password']);
    }
public function setConfiguration ( $ config ) { $ this -> setHeloHostname ( $ config [ 'helo_hostname' ] ) ; $ this -> setFrom ( $ config [ 'from_address' ] , $ config [ 'from_name' ] ) ; $ this -> setHost ( $ config [ 'host' ] ) ; $ this -> setPort ( $ config [ 'port' ] ) ; $ this -> setSecure ( $ config [ 'secure' ] ) ; $ this -> setAuth ( ( int ) $ config [ 'auth' ] === 1 ) ; $ this -> setUser ( $ config [ 'username' ] ) ; $ this -> setPass ( $ config [ 'password' ] ) ; }
Sets all configuration entries from an array.

@param array $config
All configuration entries stored in a single array.
The array should have the format of the $_POST array created by the preferences HTML.
@throws EmailValidationException
@since 2.3.1
@return void
Sets all configuration entries from an array .