Ciao a tutti volevo sapere come è possibile inviare una pag htm con php.
Questo è il mio script:
<?
$host = 'localhost';
$dbuser = '_;
$dbpass = '';
$dbname = '_****';
$table = 'newsletter';
$db = @mysql_connect($host,$dbuser,$dbpass) or die("error=could not connect to $host");
$db = mysql_select_db($dbname);
?>
<?
$msg .= "";
$query = "SELECT * FROM newsletter WHERE email != ''";
$result = mysql_query($query);
$intestazioni = "MIME-Version: 1.0\r\n";
$intestazioni .= "Content-type: text/html; charset=iso-8859-1\r\n";
$intestazioni .= "from:[email protected]";
$subject = "Newsletter di Oedoma Artsite";
while($m = mysql_fetch_array($result)){
echo $m['email'].'<strong><br /></strong>';
mail($m['email'], $subject, $msg, $intestazioni, "Newsletter!!!");
}
?>
Premetto che vorrei mandare la mia pagina per posta con una cosa del tipo include()
Vi prego aiutatemi