Per mantenere lo standard w3c devo sostituire € con
Codice PHP:
 // € 
inserendo il sostituto si verificano degli errori anomali nell’html
anomali in quanto mai ricorrenti avvolte elimina la chiusura del td “>” a volte si mangia
il tag align inserendo aign.
Credo sia dovuto dall’ & oppure dal ; o dallo #

Come posso risolvere
Codice PHP:
<?php
$messaggio 
"
<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">
<html>
<head>
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">
<title>Test Mail</title>
<style type=\"text/css\">
<!--
body,td,th {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
}
.td_title {
    background-color: #CCCCCC;
}
-->
</style>
</head>
<body>
<center>
    <table width=\"580\" border=\"1\" cellspacing=\"0\" cellpadding=\"2\">
        <tr>
            <td colspan=\"5\" align=\"center\" class=\"td_title\">[b]Dettaglio ordine[/b]</td>
        </tr>
        <tr align=\"center\" valign=\"middle\">
            <td>[b]Cod.[/b]</td>
            <td>[b]Articolo[/b]</td>
            <td>[b]Qta. Ord[/b]</td>
            <td>[b]Prz. Unit.[/b]</td>
            <td>[b]Prezzo[/b]</td>
        </tr>
"
;
    
$valore_1 "AB123";
    
$valore_2 "Test Articolo";
    
$valore_3 "1";
    
$valore_4 120;
    
$valore_5 120;
    
//-------------------------------------------------------------------------
    // € €
    //  spazio
$messaggio .= "
        <tr align=\"left\">
            <td>"
.$valore_1."</td>
            <td>"
.$valore_2."</td>
            <td align=\"center\">"
.$valore_3."</td>
            <td>€"
.$valore_4."</td>
            <td>€"
.$valore_5."</td>
        </tr>
"
;
    
//---------------------------------------------------------------------
    
$trasporto 10;
    
$totale 130;
    
//---------------------------------------------------------------------
$messaggio .= "
        <tr>
            <td colspan=\"5\" align=\"right\" valign=\"middle\">Trasporto€" 
$trasporto ."</td>
        </tr>
        <tr>
            <td colspan=\"5\" align=\"right\" valign=\"middle\">Totale€" 
$totale ."</td>
        </tr>
    </table>
"
;
$messaggio .= "
</center>
</body>
</html>
"
;
//---------------------------------------------------------------------------|
//Per inviare email in formato HTML
//---------------------------------------------------------------------------|
$mittente "test@mailtest.com"// mittente 
$e  "test@mailtest.com" ", " // destinatari
$e .= "$mittente", " ;
$e .= "test@mailtest.com";
$ogg="Ordine Merce"// oggetto
$reply="test@mailtest.com"// risposta

// .............
$intestazioni "From: $mittente\nReply-To: $reply\nX-Mailer: Sismail Web Email Interface\nMIME-version: 1.0\nContent-type: multipart/mixed;\n boundary=\"Message-Boundary\"\nContent-transfer-encoding: 7BIT"
$body_top "--Message-Boundary\n"
$body_top .= "Content-type: text/html; charset=iso-8859-1\n"
$body_top .= "Content-description: Mail message body\n\n"
$msg_body $body_top $messaggio;

// INVIO DELLA MAIL
if(@mail($e,$ogg,$msg_body$intestazioni)) {
    echo 
"<center>La mail è stata inoltrata con successo.".date("D M j G:i:s T Y")."</center>
"
;
    die();

} else {
// ALTRIMENTI...
    
echo "Si sono verificati dei problemi nell'invio dell'ordine. -- ".date("D M j G:i:s T Y"." -- ");
    die();
}
//---------------------------------------------------------------------------|
?>
cichity74