MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / quit

Method quit

tools/python-3.11.9-amd64/Lib/smtplib.py:1002–1010  ·  view source on GitHub ↗

Terminate the SMTP session.

(self)

Source from the content-addressed store, hash-verified

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

Callers 3

_deliverMethod · 0.95
emitMethod · 0.95
smtplib.pyFile · 0.45

Calls 2

docmdMethod · 0.95
closeMethod · 0.95

Tested by

no test coverage detected