Ciao ragazzi!! Ho questo codice:
Codice PHP:
<?php
// L'INDIRIZZO DEL DESTINATARIO DELLA MAIL
$to = "emaildestinatario@server.org";
// IL SOGGETTO DELLA MAIL
$subject = "Contatto dal sito web.";
// COSTRUZIONE DEL CORPO DEL MESSAGGIO
$body = "Contenuto del modulo:\n\n";
$body .= "Nome: " . trim(stripslashes($_POST["nome"])) . "\n";
$body .= "Cognome: " . trim(stripslashes($_POST["cognome"])) . "\n\n";
$body .= "E-mail: " . trim(stripslashes($_POST["email"])) . "\n\n";
$body .= "Tipo di informazione: " . trim(stripslashes($_POST["informazione"])) . "\n";
$body .= "Testo del messaggio: " . trim(stripslashes($_POST["testo"])) . "\n";
// INVIO DELLA MAIL
if(@mail($to, $subject, $body, $headers)) {// SE L'INOLTRO E' ANDATO A BUON FINE...
$forward = "ok.htm"; header("Location:$forward");
}
else {// ALTRIMENTI...
$forward1 = "errore.htm"; header("Location:$forward1");
}
?>
Vorrei sapere come inserire nella mail che mi arriva, il mittente: così da fare reply direttamente con il tasto "RISPONDI"... Ci ho provato un pò, ma non sono riuscito a capirci molto!