[Python] Python as of today returns errors re. smtp starttls

Discussão em 'Python' iniciado por Stack, Fevereiro 28, 2025.

  1. Stack

    Stack Membro Participativo

    I have a Python script that sends email and until yesterday it just worked fine, and has been working fine for the last three years. As of today it no longer works and reports the errors below. Both Python version and the script itself did not change. Any clues what this is about?

    Traceback (most recent call last):
    File "C:\Users\te\TM1py\tm1py-samples-master-old\KT\test - Copy.py", line 81, in <module>
    smtp.starttls()
    File "C:\ProgramData\anaconda3\Lib\smtplib.py", line 790, in starttls
    self.sock = context.wrap_socket(self.sock,
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "C:\ProgramData\anaconda3\Lib\ssl.py", line 517, in wrap_socket
    return self.sslsocket_class._create(
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "C:\ProgramData\anaconda3\Lib\ssl.py", line 1075, in _create
    self.do_handshake()
    File "C:\ProgramData\anaconda3\Lib\ssl.py", line 1346, in do_handshake
    self._sslobj.do_handshake()
    FileNotFoundError: [Errno 2] No such file or directory

    Continue reading...

Compartilhe esta Página