Forums

Network Unreachable

So I am making an app where I take user details in an html form including email, then send an email with some message to that provide email username, but I cant connect to outlook which I am using as the Sender Email. Please help.

$ telnet smtp-mail.outlook.com 587 Trying 52.96.111.22... Trying 40.97.188.230... Trying 52.96.109.246... Trying 52.96.40.246... Trying 52.96.109.182... Trying 52.96.88.54... Trying 52.96.64.134... Trying 52.96.19.86... Trying 2603:1036:302:4830::6... Trying 2603:1036:302:4157::6... Trying 2603:1036:302:40f4::6... Trying 2603:1036:302:40e0::6... Trying 2603:1036:302:4014::6... Trying 2603:1036:302:4000::6... Trying 2603:1036:302:505f::6... Trying 2603:1036:302:4835::6... telnet: Unable to connect to remote host: Network is unreachable

Free accounts on PythonAnywhere have restricted Internet access; they can only access the external sites on our allow-list via HTTP or HTTPS, use SSH to connect to GitHub, or use SMTP via Gmail's servers.