Email sending: No connection could be made because the target machine actively refused it
I tried a code from stackoverflow for sending emails with stmplib for sending a security email. After running with python IDLE on windows 10, this error happened: Traceback (most recent call last): File "C:/Users/pc/Downloads/py/codegen.py", line 61, in <module> server = smtplib.SMTP('localhost') File "C:\Users\pc\AppData\Local\Python\pythoncore-3.14-64\Lib\smtplib.py", line 261, in __init__ (code, msg) = self.connect(host, port) File "C:\Users\pc\AppData\Local\Python\pythoncore-3.14-64\Lib\smtplib.py", line 348, in connect self.sock = self._get_socket(host, port, self.timeout) File "C:\Users\
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.