'Terminate the SMTP session.'

def quit(self):

    res = self.docmd('quit')
    self.ehlo_resp = self.helo_resp = None
    self.esmtp_features = {}
    self.does_esmtp = False
    self.close()
    return res
