prova un po' così:
Codice PHP:<?php
# a chi mandare la mail
# $to="email@email.it";
if(isset($_POST['submitButtonName']))
{
$to="email@email.it";
# l'oggetto dalla mail
$subj="Richiesta Preventivo";
$nome= $_POST['nome'];
$cognome=$_POST['ragione'];
$citta=$_POST['citta'];
$provincia=$_POST['provincia'];
$nazione=$_POST['nazione'];
$referente=$_POST['referente'];
$telefono=$_POST['telefono'];
$email=$_POST['email'];
# il corpo della mail
$testo="<html>
<head>
<title>Richiesta Informazioni</title>
<meta http-equiv=Content-Type content=text/html; charset=iso-8859-1>
</head>
<body>
<font face=Arial, Helvetica, sans-serif size=2 color=#000000>
Nome: $nome
Cognome:$cognome
città:$citta
Provincia:$provincia
Nazione:$nazione
Referente:$referente
Telefono:$telefono
Email:$email
[b]ULTERIORI INFO[/b]:
$_POST[altro3]
</font>
</body></html>";
# gli header
$header="From: $chi\n";
$header .= "MIME-Version: 1.0\n";
$header .= "Content-Type: text/html; charset=\"iso-8859-1\"\n";
# Invio E-Mail
mail("$to", "$subj", "$testo", "$header");
echo"<p align=center><font face=Verdana, Arial, Helvetica, sans-serif size=2><a href=java-script:window.close();>chiudi la finestra</a></font>";
}
?>

Rispondi quotando