Je n'arrive pas a faire marcher mon script , j'ai une variable que je n'arrive pas a comprends.
merci d'avance pour votre aide
nowDay=date("d.m.Y");
$nowClock=date("H:i:s",time()+3600*(1+date("I")));
#
# Formating Body content ######################################################
#
// First, set up some variables to serve you in
// getting an email. This includes the email this is
// sent to (yours) and what the subject of this email
// should be. It's a good idea to choose your own
// subject instead of allowing the user to. This will
// help prevent spam filters from snatching this email
// out from under your nose when something unusual is put.
$sendTo = "[email protected]";
$subject = "DBTP - candidature part le biais du site ";
// variables are sent to this PHP page through
// the POST method. $_POST is a global associative array
// of variables passed through this method. From that, we
// can get the values sent to this page from Flash and
// assign them to appropriate variables which can be used
// in the PHP mail() function.
// header information not including sendTo and Subject
// these all go in one variable. First, include From:
//$headers = "From: " . $_POST["name"] ." ". $_POST["tel"] . " ". $_POST["about"]
$headers = "From: " . $_POST["name"] ."<" . $_POST["email"] .">\r\n";
//. "<" . $_POST["email"
//$headers = "From: " . $_POST["about"] ."\r\n";
// next include a replyto
$headers .= "Reply-To: " . $_POST["email"] ."\r\n";
// often email servers won't allow emails to be sent to
// domains other than their own. The return path here will
// often lift that restriction so, for instance, you could send
// email to a hotmail account. (hosting provider settings may vary)
// technically bounced email is supposed to go to the return-path email
$headers .= "Return-path: " . $_POST["email"];
// now we can add the content of the message to a body variable
$message = "";
$message .= "Nom: ";
$message .= "\n";
$message .= $_POST["name"];
$message .= "\n\n";
$message .= "téléphone: ";
$message .= "\n";
$message .= $_POST["tel"];
$message .= "\n\n";
$message .= "Poste recherché: ";
$message .= "\n";
$message .= $_POST["about"];
$message .= "\n\n";
[b]$message .= "Email: ";
$message .= "\n";
$message .= $_POST["email"];[/b]
$message .= "\n\n";
$message .= "Motivation: ";
$message .= "\n";
$message .= $_POST["message"];
$message .= "\n\n";
$message .= "Localisation du poste: ";
$message .= "\n";
$message .= $_POST["from"];
#
# Flashsignal Variable ######################################################
#
#
$filename = "answer.txt";
$fd = fopen( $filename, "r" );
$contents = fread( $fd, filesize( $filename ) );
fclose( $fd );
mail( "[b]$MailFrom",[/b] "monadress.com (message de confirmation)", "$contents\n\n",
"From:[email protected]\n" );