Por favor escriba su nombre!
';
}
else if(trim($email) == '')
{
$error = '
POr favor indique su direccion Email!
';
}
else if(!isEmail($email))
{
$error = '
Su Email no es valido, por favor intente de nuevo!!
';
}
if(trim($subject) == '')
{
$error = '
Indique el asunto del mensaje!
';
}
else if(trim($message) == '')
{
$error = '
Escriba su mensaje!
';
}
else if(trim($spamcheck) == '')
{
$error = '
REalice la suma para controlar el Spam!
';
}
else if(trim($spamcheck) != '5')
{
$error = '
Control Spam: El resultado de la suma no es correcta! 2 + 3 = ???
';
}
if($error == '')
{
if(get_magic_quotes_gpc())
{
$message = stripslashes($message);
}
// the email will be sent here
// make sure to change this to be your e-mail
$to = "danielgtzm@msn.com";
// the email subject
// '[Contact Form] :' will appear automatically in the subject.
// You can change it as you want
$subject = '[Contacto web] : ' . $subject;
// the mail message ( add any additional information if you want )
$msg = "From : $name \r\ne-Mail : $email \r\nSubject : $subject \r\n\n" . "Message : \r\n$message";
mail($to, $subject, $msg, "From: $email\r\nReply-To: $email\r\nReturn-Path: $email\r\n");
?>
Enviado
Gracias =$name;?>, le responderemos lo antes posible!
Contactanos:
=$error;?>