Hi ngek202,
You have incorrectly assigned the GMail SMTP server in your 'application.php'.
For the GMail's SSL SMTP, it should be...
'MailerUseSMTP' => true, // Whether or not to use a separate SMTP server for sending mail.
'MailerSMTPUseSSL' => true, // Whether or not mailer should connect using SSL (yes for GMail).
'MailerSMTPUseTLS' => false, // Same as above SSL setting, but for TLS. This setting will override the SSL setting.
'MailerSMTPPort' => 465, // When MailerUseSMTP is true: SMTP server port (mailer will default to 25).
'MailerSMTPHosts' => 'smtp.gmail.com', // When MailerUseSMTP is true: A string host or array of hosts (e.g., 'host1' or array('host1', 'backuphost')).
'MailerSMTPUsername' => '
[email protected]', // When MailerUseSMTP is true: Authorized username for SMTP server.
'MailerSMTPPassword' => 'password', // When MailerUseSMTP is true: Authorized password for SMTP server (for above user).
For the GMail's TLS SMTP, it should be...
'MailerUseSMTP' => true, // Whether or not to use a separate SMTP server for sending mail.
'MailerSMTPUseSSL' => false, // Whether or not mailer should connect using SSL (yes for GMail).
'MailerSMTPUseTLS' => true, // Same as above SSL setting, but for TLS. This setting will override the SSL setting.
'MailerSMTPPort' => 587, // When MailerUseSMTP is true: SMTP server port (mailer will default to 25).
'MailerSMTPHosts' => 'smtp.gmail.com', // When MailerUseSMTP is true: A string host or array of hosts (e.g., 'host1' or array('host1', 'backuphost')).
'MailerSMTPUsername' => '
[email protected]', // When MailerUseSMTP is true: Authorized username for SMTP server.
'MailerSMTPPassword' => 'password', // When MailerUseSMTP is true: Authorized password for SMTP server (for above user).
If the SSL SMTP setting does not work properly, try using...
'MailerSMTPHosts' => 'ssl://smtp.gmail.com', // When MailerUseSMTP is true: A string host or array of hosts (e.g., 'host1' or array('host1', 'backuphost')).