SMTP 'rcpt' command -- indicates 1 recipient for this mail.
(self, recip, options=())
| 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. |