Codice PHP:
$testo "<html><body>";

foreach (
$_POST as $key=>$value) {
  echo 
"

$key = $value</p>";
  
$testo.=$key." = ".$value."
"
;
}

$testo.="</body></html>";

mail("destinatario@mail.it","oggetto",$testo,"MIME-Version: 1.0\r\nContent-type: text/html; charset=iso-8859-1\r\nFrom: From"); 
in questo modo allega alla variabile testo tutti i campi che invii tramite post..inoltre la mail che invia è html..