Codice PHP:

       $mail             
= new PHPMailer(); 

.....


    if ( !
$mail->Send())  {
        
$res "Mailer Error: " $mail->ErrorInfo;
    } else {

        
$res "Notifica  effettuata correttamente.";
    }