How do I fix The connection to the server has failed?

I have 2 email addresses on 1 Ipad 4. One works, the other keeps giving me the "The connection to the server has failed" . Ive reset the Ipad and the Network settings, and the router box. In fact, I cant sign into my yahoo mail from my Macbook. I think the mail is hacked.....
Yahoo has been having that issue lately. Try using it through Safari until the mail app allows you to log in. And if you think your account has been hacked, you might want to change your password & add two-step verification.

Original thread: https://forums.imore.com/threads/how-do-i-fix-the-connection-to-the-server-has-failed.301952/