salut je veux envoyer un mail avec lien dedan ca veux dire que quand l'utilisateur reçois mon email son contenu sera un lien
j'ai fais echo
$contenu="echo"<a href="index.html" target="_self">index</a>"";
mais ca marche pas
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
<?php
if(isset($_POST['valider']))
{
$np=stripslashes($_POST['np']); //nom & prenom
$email=stripslashes($_POST['email']); //email
if(!empty($np) && !empty($email))
{
$mon_pseudo="microsoft";
$object="Merci pour votre inscription Mr(mme):".$nom."";
$contenu="echo"<a href="index.html" target="_self">index</a>"";
$entete="FROM:".$mon_pseudo."
<p><".$mon_email.">\n";
$entete.="MIME-VERSION:1.0";
if(mail($email,$object,$contenu,$entete)) //envoi mail
{
echo'Envoi reussie';
}
else
{
echo'Erreur ';
}
}
}
?> |
svp aidez moi sur ca
Partager