J'utilise PHPMailer pour envoyer des emails en HTML. Ca marche sauf que, lorsque j'ouvre mon email sous Outlook 2007, il m'affiche tous les éléments suivants dans le corps du message (Alors que ça ne devrait pas être "visible") :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
From: "www.monsite.fr" <monemail@monsite.fr>
Reply-to: monemail2@monsite.fr
Message-ID: <060980b46290c79b5cb72e23d18b1539@www.monsite.fr> 
X-Priority: 1 
X-Mailer: PHPMailer (phpmailer.codeworxtech.com) [version 2.3] 
MIME-Version: 1.0 
Content-Transfer-Encoding: 8bit 
Content-Type: text/html; charset="iso-8859-1"
X-Ovh-Tracer-Id: 15953438730238663338
X-Ovh-Remote: X.X.X.X (domain.com)
X-Ovh-Local: Y.Y.Y.Y (domain2.com)
X-Spam-Check: DONE|H 0.5/N
<html><head></head><body>mon message</body></html>
Voilà mon code :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
 
$mail = new PHPmailer();
$mail->IsHTML(true);
$mail->FromName=$data['from_name'];
$mail->From=$data['from_email'];
$mail->Priority=$data['priority'];
$mail->AddAddress($data['to']);
$mail->Subject=$data['subject'].'*';
$mail->Body=$data['msg'];
$mail->Send();
Je n'ai aucun filtre particulier sous Outlook2007 c'est pourquoi je pense qu'il y a quelque chose avec PHPMailer qui fait qu'il n'est pas compatible à 100% avec les clients mails...

Quelqu'un aurait une idée SVP ?