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>";
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> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> </tr> </table> <table width="926" border="0"> <tr> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td>Fecha:</td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td>Razón Social</td> <td> </td> <td>RFC:</td> <td> </td> </tr> </table> <table width="926" border="0"> <tr> <td colspan="3">-------------------------------------------------------------------------------------------------------------------</td> </tr> <tr> <td>DATOS DEL PROVEEDOR</td> <td> </td> <td> </td> </tr> <tr> <td colspan="3">-------------------------------------------------------------------------------------------------------------------</td> </tr> </table> <table width="648" border="0"> <tr> <td width="193">Nombre:</td> <td width="445"> </td> </tr> <tr> <td>Dirección (Calle y No.):</td> <td> </td> </tr> <tr> <td>Colonia o Fracc.:</td> <td> </td> </tr> <tr> <td>Municipio:</td> <td> </td> </tr> <tr> <td>Teléfono 1:</td> <td> </td> </tr> <tr> <td>Teléfono 2:</td> <td> </td> </tr> <tr> <td>Fax:</td> <td> </td> </tr> <tr> <td>Persona de Contacto:</td> <td> </td> </tr> <tr> <td>Email:</td> <td> </td> </tr> <tr> <td>Responsable de Calidad:</td> <td> </td> </tr> <tr> <td>Email:</td> <td> </td> </tr> </table> <table width="926" border="0"> <tr> <td colspan="3">-------------------------------------------------------------------------------------------------------------------</td> </tr> <tr> <td>DATOS DE FACTURACIÓN</td> <td> </td> <td> </td> </tr> <tr> <td colspan="3">-------------------------------------------------------------------------------------------------------------------</td> </tr> </table> <table width="648" border="0"> <tr> <td>Razón Social:</td> <td> </td> </tr> <tr> <td>R.F.C.</td> <td> </td> </tr> <tr> <td>Dirección:</td> <td> </td> </tr> <tr> <td>No. de Cuenta:</td> <td> </td> </tr> <tr> <td>Banco:</td> <td> </td> </tr> </table> <table width="926" border="0"> <tr> <td colspan="3">-------------------------------------------------------------------------------------------------------------------</td> </tr> <tr> <td>RESPUESTAS DE LA EVALUACIÓN</td> <td> </td> <td> </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> </td> </tr> <tr> <td>2.- ¿Cuenta con alguna certificación como proveedor confiable?</td> </tr> <tr> <td> </td> </tr> <tr> <td>3.- ¿Cuenta con un Sistema de Calidad implantado?</td> </tr> <tr> <td> </td> </tr> <tr> <td>3.A.- Indique que procedimientos de Gestión de Calidad tiene implantados.</td> </tr> <tr> <td> </td> </tr> <tr> <td>4.- ¿Cuenta con un Departamento de Calidad?</td> </tr> <tr> <td> </td> </tr> <tr> <td>5.- ¿Los productos que comercializa cuentan con certificados de calidad?*</td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr> </table> <p> </p> <p> </p> <p> </p> </body> </html>
Espero haber sido claro, cualquier duda o cosa que necesiten estoy a sus ordenes.
Muchas gracias.