I did all the changes.

1.Encrypt SMTP using SSL,it's right.
2.From memory to send smtp mail via google it uses authenticated SMTP using the same login details as for your POP3/IMAP access credentials.too

but, "smtp.gmail.com:465" (32767) ().

OpenSSL support  enabled 
OpenSSL Version  OpenSSL 0.9.8b 04 May 2006 

I'm done it

FIND

if (!($socket = fsockopen($smtp_host, $smtp_port, $errno, $errstr, 15)))

CHANGE TO

if (!($socket = fsockopen('ssl://'.$smtp_host, $smtp_port, $errno, $errstr, 15)))

And then this error code:

An error was encountered

--------------------------------------------------------------------------------

Could not connect to smtp host "smtp.gmail.com:465" (32767) ().

The error occurred on line 155 in /include/email.php

But,Now,how to send mail via gmail?