Ciao a tutti,

apro questa discussione in quanto ho un problema nell'invio dell'email.
Ho aquisito lo spazio su altervista.org.
Sto usando la classe PHPMAILER e il codice che ho scritto è il seguente:

Codice PHP:
<?php
    
include '../gestoreEmail/class.phpmailer.php';

    class 
InvioEmail{
        
        public function 
invioEmailRemoto($nome,$cognome,$email,$header,$contenuto){
        
            
$mail = new PHPMailer(true); // the true param means it will throw exceptions on errors, which we need to catch
        
            
$mail->IsSMTP(); // telling the class to use SMTP

            
echo "sono qui";
            
            try {
                
$mail->SMTPDebug  2;                     // enables SMTP debug information (for testing)
                
$mail->Mailer "smtp";
                
$mail->SMTPAuth   true;
                
$mail->SMTPSecure "tls";                     // enable SMTP authentication
                
$mail->Host       "out.virgilio.it";      // sets GMAIL as the SMTP server
                
$mail->Port       587;                   // set the SMTP port for the GMAIL server
                
$mail->Username   "passidibenessere@virgilio.it";  // GMAIL username    
                
$mail->Password   "***********";            // GMAIL password
                
$mail->AddAddress($email$nome." ".$cognome);
                
$mail->setFrom('passidibenessere@virgilio.it','Passi Di Benessere');
                
$mail->SetLanguage('it');
                
                
$mail->Subject $header;
                
//$mail->AddEmbeddedImage("../images/logo_scritta_stealth_team.png", "logo");
                //$mail->Body = ''; // optional - MsgHTML will create an alternate automatically
                
$mail->IsHTML(true);
                
$mail->MsgHTML($contenuto);
                
//$mail->AddAttachment('images/phpmailer.gif');      // attachment
                //$mail->AddAttachment('images/phpmailer_mini.gif'); // attachment
                //$mail->AddAttachment('../css/email/email.css');
                
$mail->Send();
                echo 
"Message Sent OK<p></p>\n";
            } catch (
phpmailerException $e) {
                echo 
"phpmailerException".$e->errorMessage(); //Pretty error messages from PHPMailer
            
} catch (Exception $e) {
                echo 
"Exception".$e->getMessage(); //Boring error messages from anything else!
            
}
        
        }
        
    }
?>
e ricevo come errore il seguente:

codice:
SMTP -> FROM SERVER: 
SMTP -> FROM SERVER: Method EHLO is not supported. 
SMTP -> ERROR: EHLO not accepted from server: Method EHLO is not supported. 
SMTP -> FROM SERVER:  
SMTP -> ERROR: HELO not accepted from server:  
SMTP -> NOTICE: EOF caught while checking if connectedphpmailerException Language string failed to load: tls
sapreste darmi una mano per favore?
anche perchè sincero non so come risolvere tale problema.

Grazie anticipatamente