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

A ver si este otro:

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

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

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

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