bonjour,
j'aimerai inclure du php dans mon flash en gros que mon contact.fla prenne en compte mon send.php (voici mon site
http://impressions-oise.fr/#/Contact et pour le momenr sa ne marche pas)
voici le code php : je tourne en rond depuis des heures merci d'avance
Send Mail PHP
//
//Upload this file to the root of your web directory
if(!empty($HTTP_POST_VARS['sender_mail']) || !empty($HTTP_POST_VARS['sender_message']) || !empty($HTTP_POST_VARS['sender_name']) || !empty($HTTP_POST_VARS['sender_phone']) || !empty($HTTP_POST_VARS['sender_address']))
{
//Insert Address(s) to send the mail to
$to = "***@***.fr";
//Subject
$subject = "Message from yourdomain.com";
//Body
$body = stripslashes($HTTP_POST_VARS['sender_message']);
$body .= "\n---------------------------\n";
$body .= "Name: " . $HTTP_POST_VARS['sender_name'] . "\n";
$body .= "Email: " . $HTTP_POST_VARS['sender_mail'] . "\n";
$body .= "Phone: " . $HTTP_POST_VARS['sender_phone'] . "\n";
$body .= "Message: " . $HTTP_POST_VARS['sender_address'] . "\n";
$body .= "\n\n";
$body .= "\nservice powered by yourdomain.com\n";
$header = "From: " . $HTTP_POST_VARS['sender_name'] . " <" . $HTTP_POST_VARS['sender_mail'] . ">\n";
$header .= "Reply-To: " . $HTTP_POST_VARS['sender_name'] . " <" . $HTTP_POST_VARS['sender_mail'] . ">\n";
$header .= "X-Mailer: PHP/" . phpversion() . "\n";
$header .= "X-Priority: 1";
//Mail Sentinel
if(@mail($to, $subject, $body, $header))
{
//Return Mail Status to Flash Form
echo "output=sent";
} else {
echo "output=error";
}
} else {
echo "output=error";
}
?>