Se vuoi inviare una mail in html
function invia_mail($TITOLO,$MESSAGGIO,$DESTINATARIO,$MITTENTE) {
$MESSAGGIO1="
<html>
<body bgcolor=\"#E4E4E4\"><br/>
<center>
<table width=\"945\" cellspacing=\"0\" cellpadding=\"5\" style=\"border-collapse:collapse;border:1px solid gray;\">
<tr>
<td colspan=\"2\" style=\"background-image: url('/images/background_menu_top.gif');
background-repeat: repeat-x; background-position: top; width:100%;
border-bottom:1px solid #AAAAAA; font-size: 20px; font-weight:bold; color:#FFF;height:50px;\">".stripslashes($TITLE)."
</td>
</tr>
<tr>
<td colspan=\"2\" bgcolor=\"white\" style=\"padding-left:10px;padding-right:10px;\"><br/>
<p style=\"text-align:left;padding:5px;\">".$MESSAGGIO."</p>
</td>
</tr>
</table>
<br/><br/>
</center>
</body>
</html>";
$MITTENTE="From: ".$MITTENTE."\nMIME-Version: 1.0\nContent-Type: text/html; charset=\"iso-8859-1\"\nContent-Transfer-Encoding: 7bit\n\n";
mail($DESTINATARIO, $TITOLO, $MESSAGGIO1,$MITTENTE);
}
function invia_mail($TITOLO,$MESSAGGIO,$DESTINATARIO,$MITTENTE) {
$MESSAGGIO1="
<html>
<body bgcolor=\"#E4E4E4\"><br/>
<center>
<table width=\"945\" cellspacing=\"0\" cellpadding=\"5\" style=\"border-collapse:collapse;border:1px solid gray;\">
<tr>
<td colspan=\"2\" style=\"background-image: url('/images/background_menu_top.gif');
background-repeat: repeat-x; background-position: top; width:100%;
border-bottom:1px solid #AAAAAA; font-size: 20px; font-weight:bold; color:#FFF;height:50px;\">".stripslashes($TITLE)."
</td>
</tr>
<tr>
<td colspan=\"2\" bgcolor=\"white\" style=\"padding-left:10px;padding-right:10px;\"><br/>
<p style=\"text-align:left;padding:5px;\">".$MESSAGGIO."</p>
</td>
</tr>
</table>
<br/><br/>
</center>
</body>
</html>";
$MITTENTE="From: ".$MITTENTE."\nMIME-Version: 1.0\nContent-Type: text/html; charset=\"iso-8859-1\"\nContent-Transfer-Encoding: 7bit\n\n";
mail($DESTINATARIO, $TITOLO, $MESSAGGIO1,$MITTENTE);
}
Ultima modifica: