io ho una pagina php:
<?PHP
_
$nome = $_POST['nome'];
$testo =$_POST['text'];
$da = $_POST['email'];
$title = "Email da AndryCosenzWEBSite";
$to = "e-mail";
$header = "From: Tutti i sondaggi <e-mail\n";
$header .= "MIME-Version: 1.0\n";
$header .= "Content-Type: text/html; charset=\"iso-8859-1\"\n";
$header .= "Content-Transfer-Encoding: 7bit\n\n";
$body ="
".$nome."
".$da."
".$testo."
";
if( @mail($to,$title, $body , $header)){
echo 'Messaggio inviato correttamente! Prego cliccare "indietro" del tuo browser web per tornare alla pagina precedente';
}else{
echo 'Errore nel invio dell\'messaggio controllare i campi messaggio e testo';
}
function mymail($to, $title, $body, $from = '')
{
$from = trim($from);
if (!$from) {
$from = "e-mail";
}
$rp = "e-mail";
$head = '';
$head .= "Content-Type: text/plain \r\n";
$head .= "Date: " . date('r') . " \r\n";
$head .= "Return-Path: $rp \r\n";
$head .= "From: $from \r\n";
$head .= "Sender: $from \r\n";
$head .= "Reply-To: $from \r\n";
$head .= "Organization: $org \r\n";
$head .= "X-Sender: $from \r\n";
$head .= "X-Priority: 3 \r\n";
$body = str_replace("\r\n", "\n", $body);
$body = str_replace("\n", "\r\n", $body);
return mail($to, $title, $body, $head);
}
?>
qual è il codice per reindirizzamento verso una pagina .html e dove va messo...
grazie in anticipo!!!