Ecco il codice che mi ha dato il programmatore che lo ha fatto.

<?php include "connection_db.php"; ?>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Nuova pagina 1</title>
</head>
<body bgcolor="#FFFFFF" link="#285271" vlink="#285271" alink="#285271" text="#285271">
<font face="Verdana" size="4" color="#285271">Newsletter</font>
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111">
<tr>
<td width="100%">
<?
$DATA = date ("d",time())."-".date ("m",time())."-".date ("Y",time());
$data = date ("Y",time())."-".date ("m",time())."-".date ("d",time());

setlocale(LC_TIME, 'it_IT');

function tep_date_long($raw_date) {
$s = explode ("-",$raw_date);
$raw_date = $s[0].$s[1].$s[2];

if (Strlen($raw_date) == 14) {
$date_formated = strftime('%A %d %B, %Y', mktime(0,0,0,substr($raw_date, 4, 2),substr($raw_date, 6, 2),substr($raw_date, 0, 4)));
} else {
$date_formated = strftime('%A %d %B, %Y', mktime(0,0,0,substr($raw_date, 4, 2),substr($raw_date, -2),substr($raw_date, 0, 4)));
}

return $date_formated;
}


include "newsletter_inc.php";

$From = "info@excelsiorcesano.it";
$Subject = "Excelsior cinema&teatro - Newsletter del " . $DATA;

//notify the user that the broadcast has started
echo "<center><font face='Verdana' size='3'>Inizio Invio</font></center>
";
$query = "SELECT DISTINCT email , ID_utente FROM email";

if ($result = mysql_query($query)) {
for ($i=0; $i<MySQL_NUMROWS($result); $i++) {

$id = trim(mysql_result($result, $i, "ID_utente" ));
$email = trim(mysql_result($result, $i, "email" ));

// $email="info@excelsiorcesano.it";
$messaggio = $strBody . "<table border='0'><tr><td><font face='Arial' size='1' color='#006600'> Se non desidera ricevere in futuro la newsletter può cancellarsi cliccando qui.</font></p></td></tr></table></body></html>";

//send the mail

$headers = "From:info@excelsiorcesano.it \n";
// $headers .= "bcc:daniele@giroidea.it \n"; SERVE SOLO PER PROVA !!!!!!!!!!!!!!!!!!!
$headers .= "Reply-To: info@excelsiorcesano.it \n";
$headers .= "Content-Type: text/html; charset=iso-8859-1\n";

mail($email, $Subject, $messaggio, $headers );

echo "<center><font face='Verdana' size='2'>Messaggio inviato a " . $email . "</font></center>
";
}

}

//'notify the user that the broadcast has completed

echo "<center><font face='Verdana' size='3'>Invio Completato</font></center>";

// $query = "UPDATE film SET newsletter='0'";
// $result = MySQL_QUERY($query);

mysql_close($Connessione);
?>
</td>
</tr>
</table>
</center>
</div>
</body>

</html>