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

Method has_extn

Lib/smtplib.py:503–505  ·  view source on GitHub ↗

Does the server support a given SMTP service extension?

(self, opt)

Source from the content-addressed store, hash-verified

501 return (code, msg)
502
503 def has_extn(self, opt):
504 """Does the server support a given SMTP service extension?"""
505 return opt.lower() in self.esmtp_features
506
507 def help(self, args=''):
508 """SMTP 'help' command.

Callers 8

mailMethod · 0.95
loginMethod · 0.95
starttlsMethod · 0.95
sendmailMethod · 0.95
send_messageMethod · 0.95
testEHLOMethod · 0.95

Calls 1

lowerMethod · 0.45