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

Method rcpt

Lib/smtplib.py:555–561  ·  view source on GitHub ↗

SMTP 'rcpt' command -- indicates 1 recipient for this mail.

(self, recip, options=())

Source from the content-addressed store, hash-verified

553 return self.getreply()
554
555 def rcpt(self, recip, options=()):
556 """SMTP 'rcpt' command -- indicates 1 recipient for this mail."""
557 optionlist = ''
558 if options and self.does_esmtp:
559 optionlist = ' ' + ' '.join(options)
560 self.putcmd("rcpt", "to:%s%s" % (quoteaddr(recip), optionlist))
561 return self.getreply()
562
563 def data(self, msg):
564 """SMTP 'DATA' command -- sends message data to server.

Calls 4

putcmdMethod · 0.95
getreplyMethod · 0.95
quoteaddrFunction · 0.85
joinMethod · 0.45