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

Method rcpt

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

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

(self, recip, options=())

Source from the content-addressed store, hash-verified

546 return self.getreply()
547
548 def rcpt(self, recip, options=()):
549 """SMTP 'rcpt' command -- indicates 1 recipient for this mail."""
550 optionlist = ''
551 if options and self.does_esmtp:
552 optionlist = ' ' + ' '.join(options)
553 self.putcmd("rcpt", "TO:%s%s" % (quoteaddr(recip), optionlist))
554 return self.getreply()
555
556 def data(self, msg):
557 """SMTP 'DATA' command -- sends message data to server.

Callers 1

sendmailMethod · 0.95

Calls 4

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

Tested by

no test coverage detected