For those still struggling:
for Yahoo: follow what Bethany444 above said. go into your yahoo settings (logged into a PC, not a mobile) then scroll down to turn "on" the option to allow less secure apps to sign in.
for Hotmail: by default the exchange server setting is set to "m.hotmail.com"...