Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ec9057f

Browse files
[po] auto sync
1 parent b27f665 commit ec9057f

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

library/smtplib.po

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ msgid ""
3939
"daemon. For details of SMTP and ESMTP operation, consult :rfc:`821` (Simple"
4040
" Mail Transfer Protocol) and :rfc:`1869` (SMTP Service Extensions)."
4141
msgstr ""
42+
":mod:`smtplib` 模块定义了一个 SMTP 客户端会话对象,该对象可将邮件发送到互联网上任何带有 SMTP 或 ESMTP "
43+
"监听程序的计算机。 关于 SMTP 和 ESMTP 操作的更多细节请参阅 :rfc:`821` (简单邮件传输协议) 和 :rfc:`1869` "
44+
"(SMTP 服务扩展)。"
4245

4346
#: ../../library/smtplib.rst:25
4447
msgid ""
@@ -60,6 +63,15 @@ msgid ""
6063
"omitted (or if host or port are ``''`` and/or 0 respectively) the OS default"
6164
" behavior will be used."
6265
msgstr ""
66+
":class:`SMTP` 实例是对 SMTP 连接的封装。 它提供了支持各种 SMTP 和 ESMTP 操作的方法。 如果给出了可选的 host 和 "
67+
"port 形参,则会在初始化期间调用 SMTP :meth:`connect` 方法并附带这些形参。 如果指定了 "
68+
"*local_hostname*,它将在 HELO/EHLO 命令中被用作本地主机的 FQDN。 在其他情况下,会使用 "
69+
":func:`socket.getfqdn` 来找到本地主机名。 如果 :meth:`connect` 调用返回了表示成功的代码以外的信息,则会引发 "
70+
":exc:`SMTPConnectError`。 可选的 *timeout* "
71+
"形参指定了阻塞操作如连接尝试的超时秒数(如果未指定,则将使用全局默认超时设置)。 如果达到超时限制,则会引发 :exc:`TimeoutError`。 "
72+
"可选的 source_address 形参允许在在有多张网卡的计算机中绑定到某些特定的源地址,和/或绑定到某些特定的源 TCP 端口。 它接受一个 2 "
73+
"元组 (host, port) 作为在连接之前所绑定作为其源地址的套接字。 如果省略(或者如果 host 或 port 为 ``''`` 和/或分别为 "
74+
"0)则将使用 OS 的默认行为。"
6375

6476
#: ../../library/smtplib.rst:43
6577
msgid ""

0 commit comments

Comments
 (0)