Home
last modified time | relevance | path

Searched refs:local_hostname (Results 1 – 3 of 3) sorted by relevance

/third_party/python/Lib/test/
Dtest_smtplib.py103 client = self.client(HOST, self.port, local_hostname="testhost")
104 self.assertEqual(client.local_hostname, "testhost")
284 smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost',
292 smtp = smtplib.SMTP(self.host, self.port, local_hostname='localhost',
297 self.assertEqual(smtp.local_hostname, 'localhost')
305 smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost',
313 smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost',
322 smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost',
331 smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost',
341 smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost',
[all …]
/third_party/python/Lib/
Dsmtplib.py229 def __init__(self, host='', port=0, local_hostname=None, argument
259 if local_hostname is not None:
260 self.local_hostname = local_hostname
267 self.local_hostname = fqdn
275 self.local_hostname = '[%s]' % addr
440 self.putcmd("helo", name or self.local_hostname)
451 self.putcmd(self.ehlo_msg, name or self.local_hostname)
1030 def __init__(self, host='', port=0, local_hostname=None, argument
1050 SMTP.__init__(self, host, port, local_hostname, timeout,
1084 def __init__(self, host='', port=LMTP_PORT, local_hostname=None, argument
[all …]
/third_party/python/Doc/library/
Dsmtplib.rst23 .. class:: SMTP(host='', port=0, local_hostname=None[, timeout], source_address=None)
29 *local_hostname* is used as the FQDN of the local host in the HELO/EHLO
77 .. class:: SMTP_SSL(host='', port=0, local_hostname=None, keyfile=None, \
86 arguments *local_hostname*, *timeout* and *source_address* have the same
118 .. class:: LMTP(host='', port=LMTP_PORT, local_hostname=None, \
124 server. The optional arguments local_hostname and source_address have the