(self, host='', port=0, local_hostname=None,
*, timeout=socket._GLOBAL_DEFAULT_TIMEOUT,
source_address=None, context=None)
| 1026 | default_port = SMTP_SSL_PORT |
| 1027 | |
| 1028 | def __init__(self, host='', port=0, local_hostname=None, |
| 1029 | *, timeout=socket._GLOBAL_DEFAULT_TIMEOUT, |
| 1030 | source_address=None, context=None): |
| 1031 | if context is None: |
| 1032 | context = ssl._create_stdlib_context() |
| 1033 | self.context = context |
| 1034 | SMTP.__init__(self, host, port, local_hostname, timeout, |
| 1035 | source_address) |
| 1036 | |
| 1037 | def _get_socket(self, host, port, timeout): |
| 1038 | if self.debuglevel > 0: |