par
Tiger » 06 mars 2006, 17:33
Salut, je cherche la méthode de mettre un css dans un email envoyer par php.
Voici comment mon mail est fait :
$header = "MIME-Version: 1.0\r\n";
$header .= "Content-Type: multipart/mixed; boundary=\"$boundary\"\r\n";
$header .= "\r\n";
$msg = "Je vous informe que ceci est un message au format MIME 1.0 multipart/mixed.\r\n";
$msg .= "--$boundary\r\n";
$msg .= "Content-Type: text/html; charset=\"iso-8859-1\"\r\n";
$msg .= "Content-Transfer-Encoding:8bit\r\n";
$msg .= "\r\n";
$msg .= "\r\n";
include('data2.php');
$destinataire = "[email protected]";$expediteur = "[email protected]";$reponse = $expediteur;
mail($destinataire, "Commande internet", $msg,"Reply-to:$reponse\r\nFrom: $expediteur\r\n".$header);
echo "Your order is send";
Salut, je cherche la méthode de mettre un css dans un email envoyer par php.
Voici comment mon mail est fait :
[php]
$header = "MIME-Version: 1.0\r\n";
$header .= "Content-Type: multipart/mixed; boundary=\"$boundary\"\r\n";
$header .= "\r\n";
$msg = "Je vous informe que ceci est un message au format MIME 1.0 multipart/mixed.\r\n";
$msg .= "--$boundary\r\n";
$msg .= "Content-Type: text/html; charset=\"iso-8859-1\"\r\n";
$msg .= "Content-Transfer-Encoding:8bit\r\n";
$msg .= "\r\n";
$msg .= "\r\n";
include('data2.php');
$destinataire = "
[email protected]";$expediteur = "
[email protected]";$reponse = $expediteur;
mail($destinataire, "Commande internet", $msg,"Reply-to:$reponse\r\nFrom: $expediteur\r\n".$header);
echo "Your order is send";
[/php]