Problème contact formulaire flash

Fermé
DouniaFANS Messages postés 1 Date d'inscription jeudi 18 août 2011 Statut Membre Dernière intervention 18 août 2011 - 18 août 2011 à 18:09
Bonjour,

Bonjour, Bonjour,

Je fait appel à vos talents pour résoudre, un problème que j'ai avec le formulaire de contact de mon site flash.

Je ne reçois pas les mails, par le formulaire alors que je reçoit très bien les mails en ne passant pas par le formulaire.
J'ai contacté OVH, après plusieurs test, ils me disent qu'aucun problème ne viens d'eux tout simplement de mon script.

Je vous joint les trois fichiers...

J'aimerai que le formulaire de contact envoie les mails à l'adresse suivante: douniacoesens44@gmail.com



Merci de m'aider, car la soit je fond en larme soit je pète un câble!

Désolé, j'ai oublier de mettre les fichiers:

http://douniaco.cluster010.ovh.net/lsl/

contact.xml

<?xml version="1.0" encoding="UTF-8"?> 
 
<module_data> 
 
 <settings> 
 	<!-- Title of the form --> 
 	<form_title>CONTACT US</form_title> 
   
 	<!-- Color of buttons hover --> 
 	<color>0x0DBEEA</color> 
   
 	<!-- Color of text elements --> 
 	<text_color>0xFFFFFF</text_color> 
   
 	<!-- Color of the background elements --> 
 	<background_color>0x000000</background_color> 
   
 	<!-- Labels --> 
 	<max_size_text>MAX SIZE</max_size_text> 
 	<attach_box_label>ATTACH A FILE:</attach_box_label> 
 	<send_to_me_label>Send a copy to my e-mail address.</send_to_me_label> 
   
 	<!-- Define text for errors and alerts --> 
 	<name_required_error>PLEASE TYPE YOUR NAME</name_required_error> 
 	<email_required_error>PLEASE TYPE YOUR E-MAIL ADDRESS</email_required_error> 
 	<email_not_vaild_error>E-MAIL ADDRESS IS NOT VALID</email_not_vaild_error> 
 	<message_required_error>PLEASE TYPE YOUR MESSAGE</message_required_error> 
 	<large_attachment_error>ATTACHED FILE IS TOO LARGE</large_attachment_error> 
 	<sending_alert>SENDING</sending_alert> 
 	<message_sent_alert>MESSAGE SENT</message_sent_alert> 
 	<message_not_sent_alert>MESSAGE NOT SENT, PLEASE TRY AGAIN.</message_not_sent_alert> 
 </settings> 
   
 <!-- A list of contact reasons --> 
 <!-- To add/remove a contact reason, copy/paste a <reason> node --> 
 <contact_reasons> 
 	<reason     email="douniacoesens44@gmail.com">GENERAL ENQUIRY</reason> 
 	<reason     email="douniacoesens44@gmail.com">SALES</reason> 
 	<reason     email="douniacoesens44@gmail.com">SUPPORT</reason> 
 	<reason     email="douniacoesens44@gmail.com">ABUSE</reason> 
 </contact_reasons> 
  
 <!-- List of file formats that can be attached --> 
 <!-- To add/remove a file type, copy/paste a <file_type> node --> 
 <file_types     description = "All formats"     mime_type = "application/zip"> 
 	<file_type>zip</file_type> 
 </file_types> 
  
 <!-- Maximum file size for attachments in kilobytes (1MB = 1024KB , 1GB = 1024MB) --> 
 <!-- To disable attachments, set this value to 0 --> 
 <max_file_size>100</max_file_size> 
  
 <!-- Enable 'Send a copy to my e-mail' option --> 
 <enable_send_a_copy>true</enable_send_a_copy> 
  
 <!-- HTML formatted information about other ways to contact you --> 
 <info> 
 <![CDATA[<textformat leading="-6"><font size = "14"><b>WHATEVER <font color="#0DBEEA">COMPANY</font> NAME</b></font> 
  
<font color="#0DBEEA"><b>HEADQUARTERS:</b></font><textformat leading="-2"> 
</textformat>   Building Number, Street name 
   City 
   Country 
  
  
<b><font color="#0DBEEA">PHONE NUMBERS:</font></b><textformat leading="-2"> 
</textformat>   SALES <font color="#AAAAAA">(MAADI)</font>    : <font color="#0DBEEA">+202 987 6543</font> 
   SALES <font color="#AAAAAA">(HELIOPOLIS)</font>  	: <font color="#0DBEEA">+202 123 4567</font> 
   CUSTOMER CARE    : <font color="#0DBEEA">+202 432 0123</font> 
  
   HOTLINE <font color="#AAAAAA">(INSIDE EGYPT)</font>  : <font color="#0DBEEA">11199</font> 
  
  
<b><font color="#0DBEEA">MORE INFO:</font></b><textformat leading="-2"> 
</textformat>   This is a dynamic , HTML formatted text field. 
   You can completely change its content using  
   HTML tags inside the XML file. 
  
   The form will not be able to send messages in  
   the preview.</textformat> 
 ]]> 
  
 </info> 
  
</module_data>



"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""

contact.php


<?php 
 
$email_from = $_POST["email"]; 
$email_subject = "New Contact Message"; 
$email_message = "<b>Reason</b><br>".$_POST["reason"]; 
$email_message .= "<br><b>Name</b><br>".$_POST["name"]; 
$email_message .= "<br><b>Email</b><br>".$_POST["email"]; 
$email_message .= "<br><b>Message</b><br>".$_POST["msg"]; 
$email_message .= "<br><b>---------------------------------------------------------------------</b>"; 
$email_message .= "<br><b><font color='#FF0000'><u>Important:</u></font></b>"; 
$email_message .= "<br><i>Please, make sure your anti-virus software is up to date before opening any attached files.</i>"; 
 
$email_to = $_POST["email_to"]; 
 
$headers = "From: ".$email_from."(".$_POST["name"]." )\r\n"; 
$headers .= "Reply-To: ".$email_from; 
 
if($_POST["uploading"] == "true" ){ 
 move_uploaded_file($_FILES['Filedata']['tmp_name'] , $_FILES['Filedata']['name']); 
 $fileatt = $_FILES['Filedata']['name']; 
 $fileatt_type = $_POST["mime_type"]; 
 $fileatt_name = $_FILES['Filedata']['name']; 
 
 $file = fopen($fileatt,'rb'); 
 $data = fread($file,filesize($fileatt)); 
 fclose($file); 
 
 $semi_rand = md5(time()); 
 $mime_boundary = "==Multipart_Boundary_x{$semi_rand}x"; 
 
 $headers .= "\r\nMIME-Version: 1.0\r\n" . 
 "Content-Type: multipart/mixed;\r\n" . 
 " boundary=\"{$mime_boundary}\""; 
 
 $email_message .= "This is a multi-part message in MIME format.\r\n\r\n" . 
 "--{$mime_boundary}\r\n" . 
 "Content-Type:text/html; charset=\"iso-8859-1\"\r\n" . 
 "Content-Transfer-Encoding: 7bit\r\n\r\n" . 
 $email_message . "\r\n\r\n"; 
 
 $data = chunk_split(base64_encode($data)); 
 
 $email_message .= "--{$mime_boundary}\r\n" . 
 "Content-Type: {$fileatt_type};\r\n" . 
 " name=\"{$fileatt_name}\"\r\n" . 
 //"Content-Disposition: attachment;\r\n" . 
 //" filename=\"{$fileatt_name}\"\r\n" . 
 "Content-Transfer-Encoding: base64\r\n\r\n" . 
 $data . "\r\n\r\n" . 
 "--{$mime_boundary}--\r\n"; 
}else{ 
 $headers .= 'MIME-Version: 1.0' . "\r\n"; 
 $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; 
} 
 
$success = mail($email_to, $email_subject, $email_message, $headers); 
 
if($_POST["send_copy"] == "true" ){ 
 mail($email_from, "Contact Message", $email_message, $headers); 
} 
 
if($_POST["uploading"] == "true" ){ 
 unlink($fileatt); 
} 
 
if($email_from){ 
 if($success){ 
 	echo "true"; 
 }else{ 
 	echo "false"; 
 } 
} 
 
?>