1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| $to = $email;
$titre_mail = "CashBack - Validation de votre inscription";
$boundary = md5(uniqid(microtime(), TRUE));
$headers = "Reply-to: nico@recreaweb.com\n";
$headers .= "From: validation@cashback.com\n";
$headers .= "Mime-Version: 1.0\n";
$headers .= "Content-Type: multipart/mixed;boundary=\"".$boundary."\"\n";
//version texte
$texte_mail = "essai";
//version html
$texte_mail .= '--'.$boundary."\r\n";
$texte_mail .= 'Content-type: text/html; charset=utf-8'."\r\n\r\n";
$texte_mail .= " Vous devez maintenant valider votre inscription, pour cela il vous suffit de cliquer sur le lien suivant<br /><br />".
"<a href='http://www.recreagame.org/cashback/validation.php?cle=".$cle."'>validation de votre inscription</a><br /><br />".
"Merci <br /><br />".
"L'équipe Cashback.";
$texte_mail .= '--'.$boundary."\r\n";
mail($to, $titre_mail, stripslashes($texte_mail), $headers); |
Partager