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