Pb d'envoie de mail ...
Apox
-
ric -
ric -
Bonjour,
Voila je n'arrive pas à envoyer le corps de mon message par mail ...
je ne sais pas comment faire ? quelqu'un aurait 'il une idée ?
voici un bout de mon code ...
$msg ="
<html>
<head>
<title>Nouvelle commande</title>
</head>
<body>
<p>Voici les produits commandés</p>
<table border=1 cellspacing=0>
<tr>
<td>Produits</td>
<td>quantité</td>
<td>prix</td>
</tr>
</table>
<?php
for($i=0; $i<3 ;$i++)
{
echo \"
<table border=1 cellspacing=0>
<tr>
<td>$titre[$i]</td>
<td>$prix[$i]</td>
<td>$qte[$i]</td>
</tr>
</table>
\";
}
?>
</body>
</html>
";
$test=mail("cyberapox@hotmail.com","Une nouvelle commande",$msg);
if ($test) echo "envoie reussi";
else echo mysql_error();
Voila je n'arrive pas à envoyer le corps de mon message par mail ...
je ne sais pas comment faire ? quelqu'un aurait 'il une idée ?
voici un bout de mon code ...
$msg ="
<html>
<head>
<title>Nouvelle commande</title>
</head>
<body>
<p>Voici les produits commandés</p>
<table border=1 cellspacing=0>
<tr>
<td>Produits</td>
<td>quantité</td>
<td>prix</td>
</tr>
</table>
<?php
for($i=0; $i<3 ;$i++)
{
echo \"
<table border=1 cellspacing=0>
<tr>
<td>$titre[$i]</td>
<td>$prix[$i]</td>
<td>$qte[$i]</td>
</tr>
</table>
\";
}
?>
</body>
</html>
";
$test=mail("cyberapox@hotmail.com","Une nouvelle commande",$msg);
if ($test) echo "envoie reussi";
else echo mysql_error();
A voir également:
- Pb d'envoie de mail ...
- Windows live mail - Télécharger - Mail
- Gmail envoyer un mail - Guide
- Programmer envoi mail gmail - Guide
- Mail avast 499 euros ✓ - Forum Virus
- Serveur de reception mail - Guide