par
2501gigi » 13 juil. 2006, 17:08
j'ai remis mon code comme ca :
$nomf=$row_Recordset2['nomfac'];
$prenomf=$row_Recordset2['prenomfac'];
$adressef=$row_Recordset2['adressefac'];
$villef=$row_Recordset2['villefac'];
$cpf=$row_Recordset2['cpfac'];
$telf=$row_Recordset2['telfac'];
$mailf=$row_Recordset2['mailfac'];
$nom=$row_Recordset1['nom'];
$prenom=$row_Recordset1['prenom'];
$adress=$row_Recordset1['adresse'];
$ville=$row_Recordset1['ville'];
$cp=$row_Recordset1['cp'];
$tel=$row_Recordset1['tel'];
$mail=$row_Recordset1['mail'];
$clientID=$row_Recordset3['ID'];
$date=$row_Recordset3['date'];
$total=$row_Recordset3['totalcom'];
$nomArti=$row_Recordset4['nomArti'];
$prixUni= $row_Recordset4['prixUni'];
$Qu=$row_Recordset4['Qu'];
$prixArti=$row_Recordset4['prixArti'];
$adresse = "monmail";
$sujet = "Confirmation de votre commande\n\n";
$texte='<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<p> '.$etatC.' '.$nom.' '.$prenom.',</p>
<p>Merci d\'avoir passé commande chez <strong>ATLANTIC BARS<strong>
<strong><br>Conservez ce mail car il tient lieu de facture. </strong></p>
<table width="429" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="225">Commande n° '.$clientID.'</td>
<td width="204">du '.$date.' </td>
</tr>
</table>
<br>
<table width="559" border="0" cellspacing="0">
<tr>
<td width="166"><div align="center">Désignation</div></td>
<td width="138"><div align="center">Prix Unitaire </div></td>
<td width="112"><div align="center">Quantité</div></td>
<td width="135"><div align="center">Prix Article </div></td>
</tr>
<tr>
<td>---------------------------</td>
<td>-----------------------</td>
<td>------------------</td>
<td>----------------------</td>
</tr>
</table>
---------------------------------------------------------------------------------------------------------------<br>
<table width="581" border="0" cellspacing="0">
<tr>
<td width="202"> </td>
<td width="375">
<table width="284" border="0" align="right" cellpadding="0" cellspacing="0">
<tr>
<td width="118" align="center">Total T.T.C :</td>
<td width="166" align="center">'.$totalc.'</td>
</tr>
</table>
</td>
</tr>
</table>
<p><strong>Adresse de livraison :</strong></p>
<p><strong>Nom :</strong> '.$nom.'<br>
<strong>Prenom : </strong>'.$prenom.'<br>
<strong> Adresse : </strong>'.$adress.'<br>
<strong>Code postal : </strong>'.$cp.'<br>
<strong>Ville : </strong>'.$ville.'<br>
<strong>Téléphone : </strong>'.$tel.'<br>
<strong>Mail :</strong> '.$mail.'</p>
<p><strong>Adresse de facturation :</strong><br>
<br>
<strong>Nom :</strong> '.$nomf.'<br>
<strong>Prenom : </strong>'.$prenomf.'<br>
<strong>Adresse : </strong>'.$adressef.'<br>
<strong>Code postal :</strong> '.$cpf.'<br>
<strong>Ville : </strong>'.$villef.'<br>
<strong>Téléphone : </strong>'.$telf.'<br>
<strong>Mail :</strong> '.$mailf.'<br>
<p>Merci de votre visite, en espérant vous revoir bientôt.</p>
</body>
</html>';
$headers = "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\n";
$headers .= "From: '.mailf.'\n";
mail ($adresse, $sujet, $texte,$headers);
Donc au plus simple et je ne recois meme plus le nom, prenom etc...
Ca me'envoi ca :
0 ,
Merci d'avoir passé commande chez
Conservez ce mail car il tient lieu de facture.
Commande n° 1 du 2006-07-07
Désignation Prix Unitaire Quantité Prix Article
--------------------------- ----------------------- ------------------ ----------------------
---------------------------------------------------------------------------------------------------------------
Total T.T.C : 0
Adresse de livraison :
Nom :
Prenom :
Adresse :
Code postal :
Ville :
Téléphone :
Mail :
Adresse de facturation :
Nom :
Prenom :
Adresse :
Code postal :
Ville : /strong>
Téléphone :
Mail :
Merci de votre visite, en espérant vous revoir bientôt.
</html
J'ai l'impression que plus je cherche plus je fais des bourdes enormes.
J'ai rectifier ca me donne ca
Madame ppppp ppppppppppp,
Merci d'avoir passé commande chez
Conservez ce mail car il tient lieu de facture.
Commande n° 62 du 2006-07-08
Désignation Prix Unitaire Quantité Prix Article
--------------------------- ----------------------- ------------------ ----------------------/td>
---------------------------------------------------------------------------------------------------------------
Total T.T.C : 64.7
Adresse de livraison :
Nom : ppppp
Prenom : ppppppppppp
Adresse : ppppppppp
Code postal : ppppp
Ville : ppppppppp
Téléphone : ppppppppp
Mail : pppppppppp
Adresse de facturation :
Nom : ppppp
Prenom : pppppppppp
Adresse : ppppppppp
Code postal : ppppp
Ville : ppppppppp
Téléphone : ppppppppp
Mail : pppppppppp
Merci de votre visite, en espérant vous revoir bientôt.
</html