Basically, at this point, it's a connectivity problem. something is not allowing the link up between your machine and the gmail server. Some google searches seem to point to the port... that you might not have the correct port.
Since you're using SSL, it should be 465. The username should be your full gmail address including the @gmail.com