Ver Mensaje Individual
  #4 (permalink)  
Antiguo 14/10/2009, 05:37
oscargr
 
Fecha de Ingreso: octubre-2009
Mensajes: 41
Antigüedad: 14 años, 6 meses
Puntos: 0
Respuesta: email con PHP y variables

Prueba con esto a var si te sale:

Código PHP:
<?php
$headers 
"Content-type: text/html; charset=iso-8859-1";//Para que el correo recibido no salgan las etiquetas html.

$pedido=" Consulta hecha en MIWEB <br><br>";
$nombre=$_GET["nombre"];
$apellido=$_POST["apellidos"];
$direccion=$_POST["direccion"];
$codigo=$_POST["codigo"];
$ciudad=$_POST["ciudad"];
$provincia=$_POST["provincia"];
$telefono=$_POST["telefono"];
$email=$_POST["correo"];


$pedido .= "<br><br> <u><strong> DATOS DE LA CONSULTA : </strong></u>" "<br><br> <strong>Nombre : </strong> " $nombre "<br><br> <strong> Apellidos : </strong>" $apellido "<br><br> <strong> Direccion de envio : </strong> " $direccion "<br><br> <strong>Codigo Postal : </strong> " $codigo "<br><br> <strong> Ciudad : </strong> " $ciudad " <br><br> <strong> Provincia : </strong> " $provincia " <br><br> <strong> Teléfono : </strong> " $telefono " <br><br> <strong> Email : </strong> " $email "<br><br><u><strong> En menos de 12 horas nos pondremos en contacto con husted";

$asunto="Su consulta hecha en miweb";
$empresa="MIWEB";
$correo_empresa="MICORREO@MICORREO";

mail($correo_empresa,$asunto,$pedido,$headers);
?>