Send a command, and return its response code.
(self, cmd, args="")
| 427 | return errcode, errmsg |
| 428 | |
| 429 | def docmd(self, cmd, args=""): |
| 430 | """Send a command, and return its response code.""" |
| 431 | self.putcmd(cmd, args) |
| 432 | return self.getreply() |
| 433 | |
| 434 | # std smtp commands |
| 435 | def helo(self, name=''): |