$path="../";
$lang="en";
require_once($path."includes/global.inc.php");
if(isset($HTTP_POST_VARS["email"]))
{
$email = trim($HTTP_POST_VARS["email"]);
if(strlen($email)==0)
$warning .= "All the (*) fields are obligatory !
";
if (!eregi("^[_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,5}$", $email))
$warning .= "Incorrect e-mail address !
";
if(!isset($warning)){
$subject="Désinscription à la mailing list du CETIM";
$body .= "> Demande en anglais
";
$body .="Email: ".$email."";
mail($email_default,$subject,$body,"From: cetim.ch\r\n"."MIME-Version: 1.0\r\n"."Content-type: text/html; charset=iso-8859-1\r\n");
$status = "ok";
}
}
?>
Your request has been sent }else{?>";?> |