Ver Mensaje Individual
  #1 (permalink)  
Antiguo 09/09/2008, 15:53
Avatar de Polu
Polu
 
Fecha de Ingreso: febrero-2003
Mensajes: 135
Antigüedad: 23 años, 8 meses
Puntos: 0
¿que le puedo agregar a este php para responder al destinatario?

Hola,
He compuesto este php de recortes y me funciona a la perfección, me pregunto si alguien sabe qué debo añadirle para que cuando me llegue a mi correo de outlook y, le de a responder al mensaje, me salga el destinatario del que me lo ha enviado.

Saludos....

Este es el código PHP:

Código PHP:
<?      
  $headers 
= "Content-type: text/html; charset=UTF-8\nFrom: [email protected]\n";
 
  
$fecha = time ();
  
$LaFecha = strftime("%Y-%m-%d");
  
$LaHora = date ( "h:i:s" , $fecha );
 
  
$Cabecera = '
 
   <font color="#000000" size="2" face="Arial, Helvetica, sans-serif">
   <strong>
   ||| CONTACTO: MIWEB.ES |||
   </strong>
   <br>
   <font color="#336600" size="2" face="Arial, Helvetica, sans-serif">
   <br>
   
   <strong>
   DATOS PERSONALES:<br>
   </strong>
   <font color="#336600" size="2" face="Arial, Helvetica, sans-serif">
   ----------------------------------------------------------------
   <font color="#000000" size="2" face="Arial, Helvetica, sans-serif"> 
   <br>   
   NOMBRE:.................... ' 
. $_POST["nombre"] . ' <br>
   APELLIDOS:................. ' 
. $_POST["apellidos"] . ' <br>
   EMPRESA:................... ' 
. $_POST["empresa"] . ' <br>
   DIRECCIÓN:................. ' 
. $_POST["direccion"] . ' <br>   
   POBLACIÓN:................. ' 
. $_POST["poblacion"] . ' <br>
   PROVINCIA:................. ' 
. $_POST["provincia"] . ' <br>
   CÓDIGO POSTAL:........ ' 
. $_POST["codigopostal"] . ' <br>
   TELÉFONO:.................. ' 
. $_POST["telefono"] . ' <br>
   EMAIL:......................... ' 
. $_POST["email"] . ' <br><br>
   COMENTARIOS:........... ' 
. $_POST["comentarios"] . ' <br>       
   <br>    
 
   
      <a href = "mailto:' 
. $_POST["correo"] . '">' . $_POST["correo"] . '</a> <br>
   texto insertado: ' 
. $_POST["tectocon"] . ' <br>
   Realizada con Fecha ' 
. strftime("%d-%m-%Y") . ' a las ' . date ( "h:i:s" , $fecha ) . '
   <br>
   Contacto de miweb.es, ' 
. ' <br> ' .
   
   
$_POST["tectocon"] . '
   <br><br>
   </font>
 
  '
;
  @
mail ("$correo", "CONTACO MIWEB",$cabecera,$headers);
  @
mail ("[email protected]","CONTACTO: ||| MIWEB.ES |||",$Cabecera,$headers);
  
?>

Última edición por Polu; 09/09/2008 a las 15:57 Razón: título mal puesto