Bueno, si, no funciona perfecto, ja.
Lo que quise decir es que llega al correo y llegan todos los datos que son ingresados desde la web.
Yo creo que no debo tener la línea de código que hace que aparezca el asunto, ahi va el código:
Código PHP:
Ver original<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Contactenos</title>
<style type="text/css">
<!--
.signin-btn, .button1{
background:#256EB1;
margin:8px 0;
padding:5px 10px;
color:#fff;
font-weight:bold;
border:none;
outline:none;
cursor:pointer;
text-decoration:none;
font-family:"Verdana", Geneva, sans-serif;
}
-->
</style>
</head>
<body>
<!-- Recuerde: Agregue un link en donde dice 'Index' (en el boton) -->
<!-- Recuerde: Cambie donde dice 'TuEmail' al email tuyo -->
<?php
$nombreempresa = $_POST['nombreempresa'];
$telefono = $_POST['telefono'];
$email = $_POST['email'];
$consulta = $_POST['consulta'];
if (eregi('http:', $notes)) { die ("Do NOT try that! ! "); }
// Punto 2, Valida el nombre, telefono y comentario, los campos no tienen que estar vacios.
echo "<h2>Regrese - Rellene todos los campos</h2>\n";
die ("Por favor complete todos los datos! ! "); }
$attn = $attn ;
$subject = $attn;
$message = " $todayis [EST] \n
Nombre Empresa: $nombreempresa \n
Teléfono: $telefono \n
Email: $email \n
Consulta: $consulta \n
";
$from = "From: $email\r\n";
?>
<p align="center"><br><br><br>
<b>Verifique sus datos</b><br><br><br>
Nombre Empresa: <?php echo $nombreempresa ?>
<br />
Teléfono : <?php echo $telefono ?> <br />
Email : <?php echo $email ?> <br />
Consulta: <?php echo $consulta ?> <br />
<?php echo $ip ?>
<br /><br />
<a class="button1" href="gracias.html">Continuar</a>
</p>
</body>
</html>
Este código no?