Codice PHP:
$testo = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">
<html xmlns=\"http://www.w3.org/1999/xhtml\">
<head>
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\" />
<title></title>
</head>
<body>
[b]Nome struttura:[/b] $Nome
[b]Tipo di struttura:[/b] $TipoStruttura2
[b]Regione:[/b] $Regione2
[b]Provincia:[/b] $Provincia
[b]Ente gestore - Legale rappresentante:[/b] $Ente
[b]P.iva/codice fiscale:[/b] $Cf
[b]Indirizzo della sede legale:[/b] $IndirizzoLeg
[b]Indirizzo della comunità:[/b] $IndirizzoCom
[b]Telefono:[/b] $Tel
[b]Email:[/b] $Email
[b]Area di intervento:[/b] $Intervento
[b]Sesso:[/b] $Sesso
[b]Portatori di handicap:[/b] $Handicap2
[b]Fascia di età:[/b] $Eta1 - $Eta2
[b]Nome e cognome del responsabile della comunità:[/b] $Responsabile
</body>
</html>";
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: Adesione sito.it <webmaster@sito.it>\r\n";
mail("webmaster@sito.it", "Adesione sito.it", $testo, $headers);
Perchè alcuni client non formattano i tag?