Bonjour,

Comment fait-on avec la fonction mail() pour ouvrir un mail (au format html avec du css) dans Outlook 2010.

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
 
$to = 'to';
 
$subject = 'subject';
 
$message = '
<html>
	<body>
		contenu
	</body>
</html>
';
 
$headers = "From: from\r\n";
$headers .= "Reply-To: reply\r\n";
$headers .= "Content-Type: text/html; charset=iso-8859-1\r\n";
 
mail($to, $subject, $message, $headers);
Merci.