When using Gmail as your email services provider, you might have to follow a few extra steps to make sure everything is set up correctly. 

The host/port for gmail is: imap.gmail.com:993

The following steps need to be done for gmail:

  1. Log in to Gmail.
  2. Click the gear in the top right.
  3. Click Settings.
  4. Click the Forwarding and POP/IMAP tab.
  5. In the IMAP Access section, select Enable IMAP.
  6. Click Save Changes.
  7. Go to www.google.com/settings/security/lesssecureapps. Select the option to Turn on access for less secure apps.