Bonjour,
J'utilise la fonction mail de php. le probleme est dans outlook je recois le email en texte et non en html. Quelqu'un a une idee ? voici le code
$header = "MIME-Version: 1.0\r\n";
$header .= "Content-type: text/html; charset=iso-8859-1\r\n";
$header .= "From: test@mydomaine.com\r\n";
$header .= "Reply-to: test@mydomaine.com\r\n";
$subject = "email confirmation";
$corps .= "<html><head></head><body>";
$corps .= "<a href='http://www.test.com' target='_blank'>veuillez cliquer sur ce lien s'il vous plait</a>";
$corps .= "</body></html>";
mail($sendto, $subject, $corps , $header);






Répondre avec citation
Partager