<?php
if(isset($_POST["empresa"]) && isset($_POST["nombre"]) &&
isset($_POST["telefono"]) && isset($_POST["mail"]) &&
isset($_POST["asunto"]) && isset($_POST["mensaje"]) )
{
$fecha = date("d.m.y H:i");
$mymail = "[email protected]";
$subject = "MEGGA INSUMOS SRL : Contacto web<br>";
$contenido .= "Empresa: ".$_POST["empresa"]."<br>";
$contenido .= "Nombre y Apellido: ".$_POST["nombre"]."<br>";
$contenido .= "Telefono: ".$_POST["telefono"]."<br>";
$contenido .= "E-mail: ".$_POST["mail"]."<br>";
$contenido .= "Asunto: ".$_POST["asunto"]."<br>";
$contenido .= "Mensaje: ".$_POST["mensaje"]."<br>";
$contenido .= "El mensaje se escribio el ".$fecha."<br>";
$header =
"From:".$_POST["mail"]."\nReply-To:".$_POST["mail"]."<br>";
$header .= "X-Mailer:PHP/".phpversion()."\n";
$header .= "Mime-Version: 1.0\n";
$header = "Content-Type: text/html; charset=utf-8\r\n";
//mail($mymail, $subject, utf8_encode($contenido) ,$header);
echo $contenido;
}else{
echo "ERROR";
}
?>
I test this code to send mail, but I am testing this printing $contenido.
If nothing is ISSET must be print "ERROR", but not, if I send de form empty
this code print $contenido.
It is not working, why?
I am using a server (Appserv) in Windows
+ _
// Emiliano Boragina _
// Diseño & Comunicación //////////////////
+ _
// [email protected] /
// 15 40 58 60 02 ///////////////////////////
+ _
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php