public function setPort($port = null)
    {
        if (is_null($port)) {
            $port = ($this->_protocol == 'ssl') ? 465 : 25;
        }

        $this->_port = $port;
    }
public function setPort($port = null)
    {
        if (is_null($port)) {
            $port = ($this->_protocol == 'ssl') ? 465 : 25;
        }

        $this->_port = $port;
    }
public function setPort ( $ port = null ) { if ( is_null ( $ port ) ) { $ port = ( $ this -> _protocol == 'ssl' ) ? 465 : 25 ; } $ this -> _port = $ port ; }
Sets the port, used in the connection.

@param null|int $port
@return void
Sets the port used in the connection .