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

Method close

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

Close the connection to the SMTP server.

(self)

Source from the content-addressed store, hash-verified

987 rcpt_options)
988
989 def close(self):
990 """Close the connection to the SMTP server."""
991 try:
992 file = self.file
993 self.file = None
994 if file:
995 file.close()
996 finally:
997 sock = self.sock
998 self.sock = None
999 if sock:
1000 sock.close()
1001
1002 def quit(self):
1003 """Terminate the SMTP session."""

Callers 8

__init__Method · 0.95
__exit__Method · 0.95
sendMethod · 0.95
getreplyMethod · 0.95
ehloMethod · 0.95
sendmailMethod · 0.95
quitMethod · 0.95
connectMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected