Traceback (most recent call last):
File "<tmp 11>", line 16, in <module>
s = smtplib.SMTP('localhost')
File "/usr/lib/python3.12/smtplib.py", line 255, in __init__
(code, msg) = self.connect(host, port)
File "/usr/lib/python3.12/smtplib.py", line 341, in connect
self.sock = self._get_socket(host, port, self.timeout)
File "/usr/lib/python3.12/smtplib.py", line 312, in _get_socket
return socket.create_connection((host, port), timeout,
File "/usr/lib/python3.12/socket.py", line 852, in create_connection
raise exceptions[0]
File "/usr/lib/python3.12/socket.py", line 837, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
The Stack Overflow answer 6270987
Python script:
On my Linux Mint 22 Cinnamon Framework 13 gives the output:
On LemnosLife VPS no error or output is raised but do not receive an email on my personal email in a few minutes, even in spam.