E-mail configure

I try to configure e-mail settings in Suite CRM, but I have some trouble. After the all
customization actions appears the window on which it is written “SMTP connect() failed”. Mail server - gmail.com.
Maybe I have to customize mail server? With what this error can be connected?

See the script here to help debug SMTP problems

https://suitecrm.com/forum/suitecrm-7-0-discussion/16507-mail-stopped-working-error-smtp-connect-failed