Send mail via smtplib inside a space

hello!

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

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