mail

From: Date: Wed, 06 May 2009 04:02:48 +0000
Subject: mail
Groups: php.db 
Request: Send a blank email to php-db+get-46172@lists.php.net to get a copy of this message
<?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 = "emilino.boragina@gmail.com"; $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 ////////////////// +                                                                          _    // emiliano.boragina@gmail.com  /    // 15 40 58 60 02 /////////////////////////// +                                                                          _

« previous php.db (#46172) next »