PyDocs

Nav

Internet Protocols and Support

SMTP_SSL

smtplib

class (source) not WASI
  • SMTP_SSL(host='', port=0, local_hostname=None, *, [timeout, ]context=None, source_address=None)
This is a subclass derived from SMTP that connects over an SSL
encrypted socket (to use this class you need a socket module that was
compiled with SSL support). If host is not specified, '' (the local
host) is used. If port is omitted, the standard SMTP-over-SSL port
(465) is used.  local_hostname and source_address have the same meaning
as they do in the SMTP class.  context also optional, can contain a
SSLContext.
Changed in 3.3, 3.4, 3.9, 3.12
  • 3.3: context was added.
  • 3.3: The source_address argument was added.
  • 3.4: The class now supports hostname check with ssl.SSLContext.check_hostname and Server Name Indication (see ssl.HAS_SNI).
  • 3.9: If the timeout parameter is set to be zero, it will raise a ValueError to prevent the creation of a non-blocking socket
  • 3.12: The deprecated keyfile and certfile parameters have been removed.
Members of SMTP_SSL

d

default_port
The default port used for SMTP-over-SSL connections (465).
0 Examples
No examples for smtplib/SMTP_SSL.
See Also
No see-alsos for smtplib/SMTP_SSL
0 Notes
No notes for SMTP_SSL