Fixed e-mails, can connect to SSL servers [gmail]

Fixed class that sends e-mails by remote server [mailbox hosted on some free host].
Now it works fine with servers that requires SSL connection [for example gmail.com].
Example of gmail.com config:
$config['site']['send_emails'] = true;
$config['site']['mail_address'] = "yourbox@gmail.com";
$config['site']['smtp_enabled'] = true;
$config['site']['smtp_host'] = "ssl://smtp.gmail.com";
$config['site']['smtp_port'] = 465;
$config['site']['smtp_auth'] = true;
$config['site']['smtp_user'] = "yourbox@gmail.com";
$config['site']['smtp_pass'] = "yourpassword";