File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -128,6 +128,12 @@ msgid ""
128128"aspects of the secure connection. Please read :ref:`ssl-security` for best "
129129"practices."
130130msgstr ""
131+ ":class:`SMTP_SSL` 实例与 :class:`SMTP` 实例的行为完全相同。在开始连接就需要 SSL,且 "
132+ ":meth:`starttls` 不适合的情况下,应该使用 :class:`SMTP_SSL`。如果未指定 *host*,则使用 "
133+ "localhost。如果 *port* 为 0,则使用标准 SMTP-over-SSL 端口(465)。可选参数 "
134+ "*local_hostname*、*timeout* 和 *source_address* 的含义与 :class:`SMTP` 类中的相同。可选参数 "
135+ "*context* 是一个 :class:`~ssl.SSLContext` 对象,可以从多个方面配置安全连接。请阅读 :ref:`ssl-"
136+ "security` 以获取最佳实践。"
131137
132138#: ../../library/smtplib.rst:92
133139msgid ""
@@ -169,6 +175,10 @@ msgid ""
169175"same meaning as they do in the :class:`SMTP` class. To specify a Unix "
170176"socket, you must use an absolute path for *host*, starting with a '/'."
171177msgstr ""
178+ "LMTP 协议与 ESMTP 非常相似,它很大程度上基于标准的 SMTP 客户端。将 Unix 套接字用于 LMTP 是很常见的,因此 "
179+ ":meth:`connect` 方法支持 Unix 套接字,也支持常规的 host:port 服务器。可选参数 local_hostname 和 "
180+ "source_address 的含义与 :class:`SMTP` 类中的相同。要指定 Unix 套接字,*host* 必须使用绝对路径,以 '/' "
181+ "开头。"
172182
173183#: ../../library/smtplib.rst:128
174184msgid ""
You can’t perform that action at this time.
0 commit comments