<?php
$ip = $_POST['ip'];
$httpref = $_POST['httpref'];
$httpagent = $_POST['httpagent'];
$visitor = $_POST['visitor'];
$visitormail = $_POST['visitormail'];
$notes = $_POST['notes'];
$attn = $_POST['attn'];
if(!$visitormail == "" && (!strstr($visitormail,"@") || !strstr($visitormail,".")))
{
echo "Escribi bien tu mail.\n";
$badinput = "Lo pusiste mal\n";
echo $badinput;
die ("Volve atras!");
}
if(empty($visitor) || empty($visitormail) || empty($notes )) {
echo "Uno o mas campos quedaron incompletos, \n";
die ("Volve y llenalos!");
}
$todayis = date("j / n");
$attn = $attn ;
$subject = $attn;
$notes = stripcslashes($notes);
$message = "Fecha: $todayis\n
De: $visitor ($visitormail)\n
Mensaje: $notes \n
";
$from = "De: $visitormail\r\n";
mail("
[email protected]", $subject, $message, $from);
?>