Tip when using gmail servers

you need to turn the switch on here
https://www.google.com/settings/security/lesssecureapps