salve
con questo script
$i=0;
while($i<mysql_num_rows($rs)) {
$row=mysql_fetch_array($rs);
$idnewsletter=$row["idnewsletter"];
$nautore=$row["nautore"];
$nmail=$row["nmail"];
$i++;
$titoloie = $titolo;
$testoie = $testo;
$testo = '
<html>
<head><title>'.$titoloie.'</title></head>
<body>
<table>
<tr><td>'.$testoie.'</td></tr>
</table>
</body>
</html>
';
$to = $nmail;
/* To send HTML mail, you can set the Content-type header. */
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: [email]\r\n";
//send message
mail($to,$titolo,$testo,$headers);
echo "Inviato a: ".$to."
";
}
}else{
?>Nessun record<?
}
invio una news-letter
a me interesserebbe inoltrare anche una locandina quindi un file che ne so jpg o gif , si vedrà
ma come devo fare per inserirlo nell'e-mail?