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

Method helo

Lib/smtplib.py:442–450  ·  view source on GitHub ↗

SMTP 'helo' command. Hostname to send for this command defaults to the FQDN of the local host.

(self, name='')

Source from the content-addressed store, hash-verified

440
441 # std smtp commands
442 def helo(self, name=''):
443 """SMTP 'helo' command.
444 Hostname to send for this command defaults to the FQDN of the local
445 host.
446 """
447 self.putcmd("helo", name or self.local_hostname)
448 (code, msg) = self.getreply()
449 self.helo_resp = msg
450 return (code, msg)
451
452 def ehlo(self, name=''):
453 """ SMTP 'ehlo' command.

Callers 2

testSecondHELOMethod · 0.95

Calls 2

putcmdMethod · 0.95
getreplyMethod · 0.95

Tested by 1

testSecondHELOMethod · 0.76