Send mail via SMTP inside a space


i’m trying to send a mail with yagmail, but every time i get back

File “/usr/local/lib/python3.10/”, line 833, in create_connection
OSError: [Errno 101] Network is unreachable

the same simple function is working inside google colab, my pc… only here is not working.

maybe there is some firewall block? can someone help me please?

thank you

SMTP default port numbers are block, you can try running your service from a different port above 1024