https://prefect.io logo
Title
a

Aniruddha Bharadwaj

09/29/2022, 2:20 PM
Hi All, Am trying to use the prefect-email collection to send a notification via office 365 and getting the below error. Would anyone know how to fix this issue?
File "/usr/local/lib/python3.9/site-packages/prefect_email/credentials.py", line 138, in get_server
    server = SMTP_SSL(smtp_server, smtp_port, context=context)
  File "/usr/lib64/python3.9/smtplib.py", line 1050, in __init__
    SMTP.__init__(self, host, port, local_hostname, timeout,
  File "/usr/lib64/python3.9/smtplib.py", line 255, in __init__
    (code, msg) = self.connect(host, port)
  File "/usr/lib64/python3.9/smtplib.py", line 341, in connect
    self.sock = self._get_socket(host, port, self.timeout)
  File "/usr/lib64/python3.9/smtplib.py", line 1057, in _get_socket
    new_socket = self.context.wrap_socket(new_socket,
  File "/usr/lib64/python3.9/ssl.py", line 501, in wrap_socket
    return self.sslsocket_class._create(
  File "/usr/lib64/python3.9/ssl.py", line 1041, in _create
    self.do_handshake()
  File "/usr/lib64/python3.9/ssl.py", line 1310, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1129)
1
c

Christopher Boyd

09/29/2022, 2:57 PM
This looks like an SSL error, likely due to the port being used
This doesn’t appear to be a prefect error