J'ai toujours un petit problème avec ma fonction mail.
En fait ça marche, mais je reçois mes fichiers avec l'extension .dat
Je ne peux lire mes photos que avec quickview
J'ai encore du rater quelque chose.
à suivre mon code
si quelqu'un a une idée:

if(isset($_FILES['pho1'])) $pho1 =$_FILES['pho1']['tmp_name'];
else $pho1="";
if(isset($_FILES['pho2'])) $pho2 =$_FILES['pho2']['tmp_name'];
else $pho2="";
if(isset($_FILES['pho3'])) $pho3 =$_FILES['pho3']['tmp_name'];
else $pho3="";
require "../php_mailer/phpmailer/class.phpmailer.php";
$mail = new PHPmailer();
$mail->IsSMTP();
$mail->IsHTML(true);
$mail->Host='localhost';
$mail->From=$email;
$mail->AddAddress('property@wanadoo.fr');
$mail->AddReplyTo('property@wanadoo.fr');
$mail->Subject='Maison à vendre';
$mail->Body=(" $genre $nom $prenom <br>$adresse1 $adresse2<br>$codepostal $selectville1<br>$telephone<br>$email<br>le bien:<br>$naturedubien<br>").
("$nombre_de_pieces pièces<br>surface:$surface<br>terrain:$surface2<br>$msg");
$mail->AddAttachment($pho1);
$mail->AddAttachment($pho2);
$mail->AddAttachment($pho3);
if(!$mail->Send()){
echo $mail->ErrorInfo;
}
else{
echo 'Mail envoyé avec succès,<a href=../index.php>retour à l\'Accueil</a>';
}
$mail->SmtpClose();
unset($mail);