Ver Mensaje Individual
  #1 (permalink)  
Antiguo 15/10/2009, 10:19
joelmg
 
Fecha de Ingreso: febrero-2008
Mensajes: 80
Antigüedad: 16 años, 2 meses
Puntos: 0
Problemita con Formulario en PHP

Hola a todos, tengo un formulario con el cual estoy efectuando una encuesta online a mis proveedores, dicho formulario funciona perfectamente.

Pero lo que quiero hacer es una plantilla en html para la recepcion de la informacion y no me llegue al correo como "simple texto". si no que quiero que me llegue de una forma tipo reporte.

Este es el codigo actual con el que procesa lo que me enviará al correo:

Código PHP:
$body "<strong>Datos del Proveedor</strong><br><br>
    <strong>1.- ¿Cuenta con un Sistema de Calidad certificado en ISO 9001 o equivalente?</strong><br>"
.$_POST['r01']."<br>
<strong>2.- ¿Cuenta con alguna certificación como proveedor confiable?  </strong><br> "
.$_POST['r02']."<br>
<strong>¿Cuenta con un Sistema de Calidad implantado?  </strong> <br>"
.$_POST['r03']."<br>
<strong>Indique que procedimientos de Gestión de Calidad tiene implantados.</strong> <br>"
.$_POST['r04']."<br>
<strong>¿Cuenta con un Departamento de Calidad?  </strong> <br>"
.$_POST['r05']."<br>
<strong>¿Los productos que comercializa cuentan con certificados de calidad?  </strong><br> "
.$_POST['r06']."<br><br>
<strong>DATOS DE LA EMPRESA</strong> <br><br>
<strong>Nombre:  </strong> "
.$_POST['nombre']."<br>
<strong>Dirección:  </strong> "
.$_POST['direccion']."<br>
<strong>Colonia:  </strong>"
.$_POST['colonia']."<br>
<strong>Municipio:  </strong>"
.$_POST['municipio']."<br>
<strong>Estado:  </strong>"
.$_POST['estado']."<br>
<strong>Telefono 1:  </strong>"
.$_POST['tel1']."<br>
<strong>Telefono 2:  </strong> "
.$_POST['tel2']."<br>
<strong>Fax:  </strong>"
.$_POST['fax']."<br>
<strong>Persona de Contacto:  </strong>"
.$_POST['contacto1']."<br>
<strong>E-Mail:  </strong>"
.$_POST['email1']."<br>
<strong>Responsable de Calidad:  </strong>"
.$_POST['contacto2']."<br>
<strong>Email:  </strong>"
.$_POST['email2']."<br><br>
<strong>DATOS DE FACTURACION:  </strong><br><br>
<strong>Razon Social:  </strong>"
.$_POST['razon']."<br>
<strong>RFC:  </strong>"
.$_POST['rfc']."<br>
<strong>Direccion:  </strong>"
.$_POST['direccion2']."<br>
<strong>Numero de Cuenta:  </strong>"
.$_POST['cuenta']."<br>
<strong>Banco:  </strong>"
.$_POST['banco']."<br><br>"
Entonces, lo que hice fue esta plantilla en html:

Código HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin título</title>
<style type="text/css">
<!--
.P {
	font-size: 24px;
	text-align: center;
}
.CUES {
	text-align: center;
}
.P {
	font-family: Georgia, "Times New Roman", Times, serif;
}
.P {
	font-family: "Courier New", Courier, monospace;
}
.P {
	font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
}
table {
	font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
	font-size: 14px;
}
.CUES .P .P .P {
	font-size: 16px;
}
-->
</style>
</head>

<body>
<table width="926" border="0">
  <tr>
    <td><strong><em><img src="http://icisamex.com/proveedores/logoicisa.jpg" alt="" width="224" height="137" /></em></strong></td>
    <td><p class="P"><span class="P"><span class="P"><span class="P">INGENIERIA CONTROL E INTRUMENTACION S.A. DE C.V.</span></span></span></p>
    <p class="CUES"><span class="P"><span class="P"><span class="P">CUESTIONARIO DE HOMOLOGACIÓN DE PROVEEDORES</span></span></span></p></td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>
<table width="926" border="0">
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>Fecha:</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>Razón Social</td>
    <td>&nbsp;</td>
    <td>RFC:</td>
    <td>&nbsp;</td>
  </tr>
</table>
<table width="926" border="0">
  <tr>
    <td colspan="3">-------------------------------------------------------------------------------------------------------------------</td>
  </tr>
  <tr>
    <td>DATOS DEL PROVEEDOR</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan="3">-------------------------------------------------------------------------------------------------------------------</td>
  </tr>
</table>
<table width="648" border="0">
  <tr>
    <td width="193">Nombre:</td>
    <td width="445">&nbsp;</td>
  </tr>
  <tr>
    <td>Dirección (Calle y No.):</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>Colonia o Fracc.:</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>Municipio:</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>Teléfono 1:</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>Teléfono 2:</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>Fax:</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>Persona de Contacto:</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>Email:</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>Responsable de Calidad:</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>Email:</td>
    <td>&nbsp;</td>
  </tr>
</table>
<table width="926" border="0">
  <tr>
    <td colspan="3">-------------------------------------------------------------------------------------------------------------------</td>
  </tr>
  <tr>
    <td>DATOS DE FACTURACIÓN</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan="3">-------------------------------------------------------------------------------------------------------------------</td>
  </tr>
</table>
<table width="648" border="0">
  <tr>
    <td>Razón Social:</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>R.F.C.</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>Dirección:</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>No. de Cuenta:</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>Banco:</td>
    <td>&nbsp;</td>
  </tr>
</table>
<table width="926" border="0">
  <tr>
    <td colspan="3">-------------------------------------------------------------------------------------------------------------------</td>
  </tr>
  <tr>
    <td>RESPUESTAS DE LA EVALUACIÓN</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan="3">-------------------------------------------------------------------------------------------------------------------</td>
  </tr>
</table>
<table width="926" border="0">
  <tr>
    <td>1.- ¿Cuenta con un Sistema de Calidad certificado en ISO 9001 o equivalente?</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>2.- ¿Cuenta con alguna certificación como proveedor confiable?</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>3.- ¿Cuenta con un Sistema de Calidad implantado?</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>3.A.- Indique que procedimientos de Gestión de Calidad tiene implantados.</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>4.- ¿Cuenta con un Departamento de Calidad?</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>5.- ¿Los productos que comercializa cuentan con certificados de calidad?*</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
</body>
</html> 
Lo que quiero saber es como puedo hacer para que el correo que me envia el formulario me llegue con ese formato.

Espero haber sido claro, cualquier duda o cosa que necesiten estoy a sus ordenes.

Muchas gracias.