SMTP mail for Gmail or Yahoo not working

I’m on a new install locally on Windows 7 with version Version 7.1.3 Sugar Version 6.5.17 (Build 1220) . I cannot get either Yahoo credential nor Gmail to work as my smtp email. I changed the settings, saved the password a number of times, etc. no luck. I get authorizations error all times.

What does work is my hosted email account using smtp ssl, etc. Something must be off on the two free account settings

Check if your php_imap extension is ON.