Réponse acceptée !
ok, le magic quote me donne désactivé
et voici mon code:
if($_POST['subject']=="" or $_POST['text']==""){
?>
<font color="red"><strong>There is an error with your Newsletter.</strong></font>
<?
exit;
}
//ici il y a le mysql connect
$sql = "SELECT * FROM Newsletter2";
$req = mysql_query($sql) or die('Erreur SQL !<br>'.$sql.'<br>'.mysql_error());
if(mysql_num_rows($req)==0){
?>
<font color="red"><b>No user found</b></font>
<?
}else{
while($data = mysql_fetch_assoc($req))
{
$texte=str_replace("%name%",$data['name'],$_POST['text']);
mail($data['email'],$_POST['subject'],$texte,"from: ITMFR");
}