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 27 28 29 30 31
|
<?php
$destination="mon email";
$nom=$_POST['nom'];
$email=$_POST[email];
$message .= merci" ;
//========================
$corps=$message;
$header = "MIME-Version: 1.0\r\n";
$header .= "Content-type: text/html; charset=iso-8859-1\r\n";
$header .="From:";
$header .=$email;
$subject="sujet";
$header.=$destination;
$to=$destination ;
If (isset($_POST['nom']) AND isset($_POST[email] )){
mysql_query("INSERT INTO invitimmopro VALUES('','$nom','$email')");
mail($to, $subject, $corps, $header);
?>
echo("** Email envoyé avec succès **");
<?
}
Else {
?> echo("** Vous n'avez pas saisi toutes les informations **");
<?
}
?> |
Partager