Ciao a tutti!
Ho un filmato flash che utilizza un file php per inviare mail da web.
Il file php è questo.
Codice PHP:
<?
function parse($valeur){
return stripslashes(nl2br(utf8_decode($valeur)));
}
$sujetmsg = parse($_POST['sujet']);
$nomprenom = parse($_POST['nomprenom']);
$mail = parse($_POST['mail']);
$message = parse($_POST['msg']);
$contentmsg = "
[b]NOME: [/b]".$nomprenom."[b]
E-MAIL / TELEFONO: [/b]".$mail."[b]
MESSAGGIO:
[/b]".$message;
$sreception = "Grazie per aver scritto.";
$creception = "Il tuo messaggio è stato appena ricevuto.
Grazie.
A presto.";
$email="mail@miamail.it";
$sujet="Messaggio dal sito : ".$sujetmsg." ";
$headers = "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\n";
$headers .= "Da: ".$mail."\n";
$headers2 = "MIME-Version: 1.0\n";
$headers2 .= "Content-type: text/html; charset=iso-8859-1\n";
$headers2 .= "Da: ".$email."\n";
mail($email,$sujet,$contentmsg,$headers);
mail($mail,$sreception,$creception,$headers2);
?>
Come posso modificare il mittente? Le e-mail alla mia casella arrivano a nome "anonymous@localhost.com"