Pls mi serve una mano:

ho scritto questo codice:

Codice PHP:
Invio email
<?php
$mail
=new PHPmailer();
$mail->IsSMTP();
$mail->SMTPAuth true// turn on SMTP authentication
$mail->Username "rugge.cf@gmail.com"// SMTP username
$mail->Password "xxxxx"// SMTP password
$webmaster_email "rugge.cf@gmail.com"//Reply to this email ID
$email="username@domain.com"// Recipients email ID
$name="name"// Recipient's name
$mail->From $webmaster_email;
$mail->FromName "Webmaster";
$mail->AddAddress($email,$name);
$mail->AddReplyTo($webmaster_email,"Webmaster");
$mail->WordWrap 50// set word wrap

$mail->IsHTML(true); // send as HTML
$mail->Subject "This is the subject";
$mail->Body "Hi,
This is the HTML BODY "
//HTML Body
$mail->AltBody "This is the body when user views in plain text format"//Text Body
if(!$mail->Send())
{
  echo 
"Mailer Error: " $mail->ErrorInfo;
}
else
{
  echo 
"Message has been sent";
}
?>
Inoltre nel file php.ini ho decommentato la stringa
extension=php_openssl.dll.

Ma ottengo questo errore:

Warning: fsockopen() [function.fsockopen]: unable to connect to ssl://smtp.gmail.com:465 (Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?) in G:\xampplite\htdocs\progeto1\class.smtp.php on line 124
Mailer Error: SMTP Error: Could not connect to SMTP host.

Qlc mi sa aiutare?

Ah sto eseguendo il tutto in localhost.