KONTAKT
Wir sind für dich da. Melde dich gerne jederzeit.
Addresse
- Woodrich Café
- Mohamed Missbah
- Elisabethenstr. 17
- 64283 Darmstadt
if (isset($_POST['submit']))
{
date_default_timezone_set("Europe/Berlin");
$timestamp_send = time();
$diff=$_COOKIE["EntryCookie"]-$timestamp_send;
if ($diff<=-10)
{
$to = 'hello@woodrich-coffee.com'; // Put in your email address here
//$to = 'addi@mailify.de'; // Put in your email address here
$betreff = "Kontakt | woodrich-coffee.com"; // The default subject. Will appear by default in all messages. Change this if you want.
// User info (DO NOT EDIT!)
$name = strip_tags(stripslashes($_REQUEST['name'])); // sender's name
$subject = strip_tags(stripslashes($_REQUEST['subject']));
$email = stripslashes($_REQUEST['email']); // sender's email
$message = strip_tags(stripslashes($_REQUEST['message']));
// The message you will receive in your mailbox
// Each parts are commented to help you understand what it does exaclty.
// YOU DON'T NEED TO EDIT IT BELOW BUT IF YOU DO, DO IT WITH CAUTION!
$header = "From: noreply@woodrich-coffee.com \r\n"."Content-type: text/plain; charset=utf-8"."\r\n";
$msg .= "Hallo Mo, du hast eine neue Anfrage über das Kontaktformular erhalten:\r\n\n"; // add sender's name to the message
$msg .= "Vorname: ".$name."\r\n\n"; // add sender's name to the message
$msg .= "E-Mail: ".$email."\r\n\n"; // add sender's email to the message
$msg .= "Betreff: ".$subject."\r\n\n"; // add sender's email to the message
$msg .= "Nachricht: ".$message."\r\n\n"; // add sender's email to the message
$msg .= "\r\n\n";
//if!($spam) {
$mail = @mail($to, $betreff, $msg, $header); // This command sends the e-mail to the e-mail address contained in the $to variable
//}
//if($mail) {
//header("Location:index.php");
//} else {
// echo 'Message could not be sent!'; //This is the message that will be shown when an error occured: the message was not send
//}
}
}
?>