evoyer un mail mis en page
J'ai un soucy, pour mon prjet je dois envoyer un mail, j'y arrive tres bie navec la fonction mail() de php, mais...et oui il y a toujours un mais par ici <_<
la mise en page ne se fait pas. alors voici mon code
Code:
1 2 3 4 5 6 7 8 9 10 11
|
$header="MIME-Version: 1.0\r\n";
$header.='Content-Type: text/html; charset="iso-8859-1"'."\n";
$header.='Content-Transfer-Encoding: 8bit';
$TO = "guillaume.dambrunne@scapartois.fr";
$TO2 = "vincent.demay@scapartois.fr";
$TO3 = "antoinette.divincenzo@scapartois.fr";
$TO4 = "sabrina.massinon@scapartois.fr";
$h = "From: Accueil";
$subject="Anomalie acceuil";
$message = "<html><head><title>Anomalie</title></head><body>EAN : ".$ean." <br/>Design : ".$design." Tel : ".$tel." BRII : ".$brii." Tract : ".$tract. " Validé par : ".$valider." PVC : ".$pvc."</body></html>"; |
voila dans le mail il y a les balises html visibles et tout est sur une ligne :/ help me siouplaiiit Y_Y