#NEWLINE# def ehlo( self , ehlo_as ) : #NEWLINE# #INDENT# 'Sends the EHLO command with identifier string and waits for the\n        reply. When this method returns, the ``self.extensions`` object will\n        also be populated with the SMTP extensions the server supports.\n\n        :param ehlo_as: EHLO identifier string, usually an FQDN.\n        :returns: |Reply| object populated with the response.\n\n        ' #NEWLINE# ehlo = Reply ( command = b'EHLO' ) #NEWLINE# ehlo . enhanced_status_code = False #NEWLINE# self . reply_queue . append ( ehlo ) #NEWLINE# if ( not isinstance ( ehlo_as , bytes ) ) : #NEWLINE# #INDENT# ehlo_as = ehlo_as . encode ( 'ascii' ) #NEWLINE# #UNINDENT# command = ( b'EHLO ' + ehlo_as ) #NEWLINE# self . io . send_command ( command ) #NEWLINE# self . _flush_pipeline ( ) #NEWLINE# if ( ehlo . code == '250' ) : #NEWLINE# #INDENT# self . extensions . reset ( ) #NEWLINE# ehlo . message = self . extensions . parse_string ( ehlo . message ) #NEWLINE# #UNINDENT# return ehlo