Voilà, je m'arrache les cheveux depuis ce matin sur le problème suivant.
Je génère un email au format html avec php. Dans celui-ci, une url vers un site web (disons http://www.toto.com).
Dans mon code php, le message de l'email contient donc
Code : Tout sélectionner
<a href='www.toto.com'>www.toto.com</a>Dans une machine vituelle (qui me sert à tester en local) windows xp (avec apache,php,mysql,...) et donx outlook express 6 : clic et au bout d'environ 20 secondes, ie s'ouvre avec dans la barre d'adresse : res://ieframe.dll/syntax.htm#www.toto.com
Si je remplace le lien par
Code : Tout sélectionner
<a href='http://www.toto.com'>www.toto.com</a>Dans ma machine test : clic, 20secondes, et ie s'ouvre avec http://www.toto.com:80
Donc que se passe-t-il ??
Et question subsidiaire : dans gmail, l'email s'affiche en 'texte' et pas en html.
Merci.
ps : voici le message
Code : Tout sélectionner
Return-Path: Received: from fr-08f2f79151 ([127.0.0.1]) by FR-08F2F79151 ; Wed, 9 Sep 2009 12:46:08 +0200
Subject: Invitation
To: [email protected]
Date: Wed, 9 Sep 2009 12:46:08 +0200
Return-Path: [email protected]
From: =xxx= <[email protected]>
Message-ID: <[email protected]>
X-Priority: 3
X-Mailer: PHPMailer (phpmailer.sourceforge.net) [version 2.0.4]
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Type: text/html; charset="utf-8"
<html>
<head>
<style type="text/css">
body { color : #79531B; background-color : #E5CC70; font-family : Tahoma, Arial, Verdana, sans-serif; font-size : 14px; }
a { color : #79531B; font-weight : bold; }
</style>
</head>
<body>
<a href="http://www.toto.com">www.toto.com</a>
</body>
</html>