switch($_REQUEST["hidAccion"]) { case "enviar": /*$destinatario = "estudio@merega-ursini.com.ar". "\r\n"; */ $destinatario = "estudio@merega-ursini.com.ar". "\r\n"; $asunto = "Contacto web" . "\r\n"; $mensaje .= "Mail del suscripto: ".$_REQUEST["mail"]."\r\n"; $mensaje .= "Nombre: ".$_REQUEST["nombre"]."\r\n"; $mensaje .= "Telefeono: ".$_REQUEST["telefono"]."\r\n"; $mensaje .= "Empresa: ".$_REQUEST["newsletter"]."\r\n"; $mensaje .= "Comentarios: ".$_REQUEST["consulta"]."\r\n"; /*$headers_mensaje = "From: estudio@merega-ursini.com.ar\r\n" . "Reply-To: estudio@merega-ursini.com.ar\r\n" . "Return-path: estudio@merega-ursini.com.ar\r\n" . "MIME-Version: 1.0\n" . "Content-type: text/plain; charset=iso-8859-1"; */ $headers_mensaje = "From: estudio@merega-ursini.com.ar\r\n" . "Reply-To: estudio@merega-ursini.com.ar\r\n" . "Return-path: estudio@merega-ursini.com.ar\r\n" . "MIME-Version: 1.0\n" . "Content-type: text/plain; charset=iso-8859-1"; mail($destinatario, $asunto, $mensaje, $headers_mensaje); break; } if($_REQUEST["nombre"]==""){ $nombre = "Nombre y apellido"; }else{ $nombre = $_REQUEST["nombre"]; } if($_REQUEST["mail"]==""){ $mail = "E-mail"; }else{ $mail = $_REQUEST["mail"]; } if($_REQUEST["telefono"]==""){ $telefono = "Teléfono"; }else{ $telefono = $_REQUEST["teléfono"]; } if($_REQUEST["consulta"]==""){ $consulta = "Comentario"; }else{ $consulta = $_REQUEST["c"]; } if($_REQUEST["newsletter"]==""){ $newsletter = "Empresa"; }else{ $newsletter = $_REQUEST["newsletter"]; } ?>