| 12
 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
 
 | <?php
 
 
        $headers = "From:".$_GET['email']."\n";
        $headers .= "Reply-To: ".$_GET['email']."\n";
        $headers .= "Cc:[ADRESSE MAIL]\n";
        $headers .= "MIME-version: 1.0\n";
        $headers .= "Content-type: text/html;\n\n";
        
        $obj="Inscription newsletter";
        $txt="<body>";
        $txt.="<div width='100%'>";
        $txt.="<font face='verdana' size='2'>";
        $txt.=$_GET['email'];
        $txt.="</font>";
        $txt.="</div>";
        $txt.="</body>";
 
$dest="[ADRESSE MAIL]";
 
if (mail($dest,$obj,$txt,$headers)){
echo "&contact=ok";
}else{
echo "&contact=pasok";
}
        
?> | 
Partager