public function quit($closeOnError = true) {
		try {
			$this->sendMessage('QUIT', 221, 'SMTP server rejected quit command');
		} catch (SmtpConnectionException $ex) {
			if (!$closeOnError) throw $ex;
		}
		$this->close();
	}
public function quit($closeOnError = true) {
		try {
			$this->sendMessage('QUIT', 221, 'SMTP server rejected quit command');
		} catch (SmtpConnectionException $ex) {
			if (!$closeOnError) throw $ex;
		}
		$this->close();
	}
public function quit ( $ closeOnError = true ) { try { $ this -> sendMessage ( 'QUIT' , 221 , 'SMTP server rejected quit command' ) ; } catch ( SmtpConnectionException $ ex ) { if ( ! $ closeOnError ) throw $ ex ; } $ this -> close ( ) ; }
quits the communication with the server. is private as you shoul always call quit

@param bool $closeOnError
@throws SmtpConnectionException
quits the communication with the server . is private as you shoul always call quit