Ver Mensaje Individual
  #3 (permalink)  
Antiguo 11/12/2007, 17:41
Avatar de ferphp
ferphp
 
Fecha de Ingreso: julio-2007
Ubicación: San Pedro Sula
Mensajes: 115
Antigüedad: 16 años, 9 meses
Puntos: 1
Re: phpmailer ayuda!!!

este es el codigo del form:
Código HTML:
<form name="form1" method="post" action="productosnuevos.php">
                            <table width="395" border="0" align="center" cellpadding="0" cellspacing="0">
                              <tr>
                                <td align="right" class="Estilo3" style="font-family: Arial; font-size: 12px; font-weight: bold; color: #0A679A">&nbsp;</td>
                                <td>&nbsp;</td>
                              </tr>
                              <tr>
                                <td width="165" align="right" class="Estilo3" style="font-family: Arial; font-size: 12px; font-weight: bold; color: #0A679A">Código de Barra :</td>
                                <td width="230"><input name="codigo" type="text" id="codigo"></td>
                              </tr>
                              <tr>
                                <td align="right" class="Estilo3" style="font-family: Arial; font-size: 12px; font-weight: bold; color: #0A679A">Marca:</td>
                                <td><input name="marca" type="text" id="marca"></td>
                              </tr>
                              <tr>
                                <td align="right" valign="top" class="Estilo3" style="font-family: Arial; font-size: 12px; font-weight: bold; color: #0A679A">Descripción: </td>
                                <td><textarea name="descripcion" id="descripcion"></textarea></td>
                              </tr>
                              <tr>
                                <td align="right" class="Estilo3" style="font-family: Arial; font-size: 12px; font-weight: bold; color: #0A679A">Unidades:</td>
                                <td><input name="unidades" type="text" id="unidades"></td>
                              </tr>
                              <tr>
                                <td align="right" class="Estilo3" style="font-family: Arial; font-size: 12px; font-weight: bold; color: #0A679A">Tamaño:</td>
                                <td><input name="tamanio" type="text" id="tamanio"></td>
                              </tr>
                              <tr>
                                <td align="right" class="Estilo3" style="font-family: Arial; font-size: 12px; font-weight: bold; color: #0A679A">Costo:</td>
                                <td><input name="costo" type="text" id="costo"></td>
                              </tr>
                              <tr>
                                <td align="right" class="Estilo3" style="font-family: Arial; font-size: 12px; font-weight: bold; color: #0A679A">Descuento:</td>
                                <td><input name="descuento" type="text" id="descuento"> </td>
                              </tr>
                              <tr>
                                <td align="right"><span style="font-family: Arial; font-size: 11px; font-weight: bold; color: #0A679A">I.V.A:</span></td>
                                <td><select name="iva" id="iva">
                                  <option selected>Si</option>
                                  <option>No</option>
                                                                                                </select></td>
                              </tr>
                              <tr>
                                <td align="right" class="Estilo3" style="font-family: Arial; font-size: 12px; font-weight: bold; color: #0A679A">Costo Neto: </td>
                                <td><input name="costoneto" type="text" id="costoneto"></td>
                              </tr>
                              <tr>
                                <td align="right" class="Estilo3" style="font-family: Arial; font-size: 12px; font-weight: bold; color: #0A679A">Colonial 1: </td>
                                <td><input name="colonial1" type="text" disabled="disabled" id="colonial1" value="Para uso exclusivo(SC)"></td>
                              </tr>
                              <tr>
                                <td align="right" class="Estilo3" style="font-family: Arial; font-size: 12px; font-weight: bold; color: #0A679A">Colonial 2: </td>
                                <td><input name="colonial2" type="text" disabled="disabled" id="colonial2" value="Para uso exclusivo(SC)"></td>
                              </tr>
                              <tr>
                                <td align="right" class="Estilo3" style="font-family: Arial; font-size: 12px; font-weight: bold; color: #0A679A">MC1:</td>
                                <td><input name="mc1" type="text" disabled="disabled" id="mc1" value="Para uso exclusivo(SC)"></td>
                              </tr>
                              <tr>
                                <td align="right" class="Estilo3" style="font-family: Arial; font-size: 12px; font-weight: bold; color: #0A679A">MC2:</td>
                                <td><input name="mc2" type="text" disabled="disabled" id="mc2" value="Para uso exclusivo(SC)"></td>
                              </tr>
                              <tr>
                                <td align="right" class="Estilo3" style="font-family: Arial; font-size: 12px; font-weight: bold; color: #0A679A">&nbsp;</td>
                                <td>&nbsp;</td>
                              </tr>
                              <tr>
                                <td align="right" class="Estilo3" style="font-family: Arial; font-size: 12px; font-weight: bold; color: #0A679A">&nbsp;</td>
                                <td><table width="228" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                      <td width="99"><input name="Submit" type="submit" onClick="MM_validateForm('nombre','','R','telefono','','R');return document.MM_returnValue" value="Enviar"></td>
                                      <td width="129"><input type="reset" name="Submit2" value="Borrar"></td>
                                    </tr>
                                </table></td>
                              </tr>
                            </table>
                          </form> 
y este mi php, con la clase phpmailer,

productosnuevos.php

Código PHP:
<?php

include_once('./phpmailer/class.phpmailer.php');

$mail    = new PHPMailer();

$body    $mail->getFile('productosnuevos.html');

$body    eregi_replace("[\]",'',$body);

$mail->From     "[email protected]";//esto va ir predefinido//
$mail->FromName "Nombre remitente";

$mail->Subject "Envio de datos de productos";

$mail->AltBody "Para ver el mensaje, por favor use una vista HMTL de email!";

$mail->MsgHTML($body);

$mail->AddAddress("[email protected]""Mi nombre");

if(!
$mail->Send()) {
  echo 
'Error de envio';
} else {
  echo 
'Datos enviados correctamente';
}

?>
ese formulario de arriba me tiene que llegar asi como esta, pero con los datos que introduje, como te comente anteriormente, me llega el correo, pero sin los datos que introduje, gracias por tu ayuda.