SMTP 'helo' command. Hostname to send for this command defaults to the FQDN of the local host.
(self, name='')
| 440 | |
| 441 | # std smtp commands |
| 442 | def helo(self, name=''): |
| 443 | """SMTP 'helo' command. |
| 444 | Hostname to send for this command defaults to the FQDN of the local |
| 445 | host. |
| 446 | """ |
| 447 | self.putcmd("helo", name or self.local_hostname) |
| 448 | (code, msg) = self.getreply() |
| 449 | self.helo_resp = msg |
| 450 | return (code, msg) |
| 451 | |
| 452 | def ehlo(self, name=''): |
| 453 | """ SMTP 'ehlo' command. |