MCPcopy Index your code
hub / github.com/python/cpython / quit

Method quit

Lib/smtplib.py:1003–1011  ·  view source on GitHub ↗

Terminate the SMTP session.

(self)

Source from the content-addressed store, hash-verified

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
1013if _have_ssl:
1014

Callers 15

emitMethod · 0.95
test_connect_starttlsMethod · 0.95
testBasicMethod · 0.95
testSourceAddressMethod · 0.95
testNOOPMethod · 0.95
testRSETMethod · 0.95
testELHOMethod · 0.95
testVRFYMethod · 0.95
testSecondHELOMethod · 0.95
testHELPMethod · 0.95

Calls 2

docmdMethod · 0.95
closeMethod · 0.95

Tested by 15

test_connect_starttlsMethod · 0.76
testBasicMethod · 0.76
testSourceAddressMethod · 0.76
testNOOPMethod · 0.76
testRSETMethod · 0.76
testELHOMethod · 0.76
testVRFYMethod · 0.76
testSecondHELOMethod · 0.76
testHELPMethod · 0.76
testSendMethod · 0.76