<?php 
date_default_timezone_set("Europe/Paris");
//define the receiver of the email 
//$to = 'dalila.barkache@gmail.com'; 
$to = 'tom@inoui.io';
//define the subject of the email 
$subject = "New contact from Dalilabarkache.com"; 
$uid = md5(uniqid(time()));
$message = print_r($_REQUEST, 1);
//define the headers we want passed. Note that they are separated with \r\n 
$header = "From: Dalila <contact@dalilabarkache.com>\r\n";
$header .= "Content-type:text/plain; charset=utf-8\r\n";
$header .= "Content-Transfer-Encoding: 7bit\r\n\r\n";
if ($_REQUEST['email'] != '') echo mail($to, $subject, $message, $header);
else echo 0;
?>
