Codice PHP:

require('phpmailer/class.phpmailer.php');
        
$mail = new PHPMailer();    // Create a PHPMailer object 
        
$mail->IsSMTP();    // set mailer to use SMTP 

        
$mail->Host MAIL_HOST;    // specify main and backup server 
        
$mail->Port '25'
        
$mail->SMTPAuth MAIL_SMTP_AUTH;    // turn on SMTP authentication 
        
$mail->Username MAIL_SMTP_USR;    // SMTP username 
        
$mail->Password MAIL_SMTP_PSW;    // SMTP password 
        
$mail->From MAIL_SENDER// Sender     
        
$mail->FromName MAIL_FROM;    // Sender name 

        
$mail->SetLanguage('it',PHP_MAILER_DIR.'language/'); 

        
$mail->AddBcc($_POST['mail'], MAIL_FROM); 

        
$mail->WordWrap 50;    // set word wrap 

        
$mail->IsHTML(true);
        
$mail->Subject 'Welcome; 
        $mail->Body    = $text;