Unable to read data from the transport connection: net_io_connectionclosed

I am trying to set up the Distribution Settings and keep getting this error: 

Unable to read data from the transport connection: net_io_connectionclosed  

I have tried to use Office365 SMTP settings and also my Yahoo account to test. I get this error when trying to send an email.