public function connect() {
		// only continue, if not connected
		if ($this->isConnected()) throw new SmtpException('SMTP client already connected');
		
		$this->log('connecting...');
		$response = $this->connection->open();
		$this->log($response);		
	}
public function connect() {
		// only continue, if not connected
		if ($this->isConnected()) throw new SmtpException('SMTP client already connected');
		
		$this->log('connecting...');
		$response = $this->connection->open();
		$this->log($response);		
	}
public function connect ( ) { // only continue, if not connected
 if ( $ this -> isConnected ( ) ) throw new SmtpException ( 'SMTP client already connected' ) ; $ this -> log ( 'connecting...' ) ; $ response = $ this -> connection -> open ( ) ; $ this -> log ( $ response ) ; }
connects to an smtp server

@throws SmtpException
@throws SmtpConnectionException
connects to an smtp server