Kaydet (Commit) 0bfd6acf authored tarafından R David Murray's avatar R David Murray

Reflow paragraph.

üst 14ee3cf2
...@@ -27,15 +27,14 @@ Protocol) and :rfc:`1869` (SMTP Service Extensions). ...@@ -27,15 +27,14 @@ Protocol) and :rfc:`1869` (SMTP Service Extensions).
host and port parameters are given, the SMTP :meth:`connect` method is called host and port parameters are given, the SMTP :meth:`connect` method is called
with those parameters during initialization. If the :meth:`connect` call with those parameters during initialization. If the :meth:`connect` call
returns anything other than a success code, an :exc:`SMTPConnectError` is returns anything other than a success code, an :exc:`SMTPConnectError` is
raised. The optional raised. The optional *timeout* parameter specifies a timeout in seconds for
*timeout* parameter specifies a timeout in seconds for blocking operations blocking operations like the connection attempt (if not specified, the
like the connection attempt (if not specified, the global default timeout global default timeout setting will be used). The optional source_address
setting will be used). The optional source_address parameter allows to bind to some parameter allows to bind to some specific source address in a machine with
specific source address in a machine with multiple network interfaces, multiple network interfaces, and/or to some specific source TCP port. It
and/or to some specific source TCP port. It takes a 2-tuple (host, port), takes a 2-tuple (host, port), for the socket to bind to as its source
for the socket to bind to as its source address before connecting. If address before connecting. If omitted (or if host or port are ``''`` and/or
omitted (or if host or port are ``''`` and/or 0 respectively) the OS default 0 respectively) the OS default behavior will be used.
behavior will be used.
For normal use, you should only require the initialization/connect, For normal use, you should only require the initialization/connect,
:meth:`sendmail`, and :meth:`~smtplib.quit` methods. :meth:`sendmail`, and :meth:`~smtplib.quit` methods.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment