Terminate the SMTP session.
(self)
| 1001 | sock.close() |
| 1002 | |
| 1003 | def quit(self): |
| 1004 | """Terminate the SMTP session.""" |
| 1005 | res = self.docmd("quit") |
| 1006 | # A new EHLO is required after reconnecting with connect() |
| 1007 | self.ehlo_resp = self.helo_resp = None |
| 1008 | self.esmtp_features = {} |
| 1009 | self.does_esmtp = False |
| 1010 | self.close() |
| 1011 | return res |
| 1012 | |
| 1013 | if _have_ssl: |
| 1014 |