The link below tells you the settings for GMail.
At the bottom of the page read about using different ports
You did make sure to Save the configuration?
Also did you make sure you enabled POP in Gmail
you have to login into your gmail account and click on the gear at the top right corner beside your name.