Ver Mensaje Individual
  #7 (permalink)  
Antiguo 24/03/2015, 23:32
zipcs
 
Fecha de Ingreso: marzo-2015
Mensajes: 11
Antigüedad: 10 años
Puntos: 0
Respuesta: Enviar variable con phpmailer

Ya te muestro el código, lo que logre ahora fue que se envíen todos los productos pero en emails separados..
Código:
    <p><strong>Lista de Productos a Cotizar.</strong></p>
    <table width="100%" border="0">
  <tr>
    <td>Producto</td>
    <td>Unidades</td>
    <td>Acciones</td>
</tr>
 <?php do { 
 ?>
  <tr> 
   <td><?php echo $body = ObtenerNombreProducto($row_DatosCot['idProducto']); ?></td>
    <td><?php echo $row_DatosCot['intCantidad']; ?>
    <?php $mail->Body = 'Producto: ' . $body . ' ' . 'Cantidad: ' . $row_DatosCot['intCantidad'];?>
      <form action="<?php echo $editFormAction; ?>" method="post" name="form2" id="form2">
        <table align="center">
          <tr valign="baseline">
            <td nowrap="nowrap" align="right">Cantidad:</td>
            <td><input type="text" name="intCantidad" value="<?php echo htmlentities($row_DatosCot['intCantidad'], ENT_COMPAT, 'utf-8'); ?>" size="32" /></td>
          </tr>
          <tr valign="baseline">
            <td nowrap="nowrap" align="right">&nbsp;</td>
            <td><input type="submit" value="Actualizar Cantidad" /></td>
          </tr>
        </table>
        <input type="hidden" name="MM_update" value="form2" />
        <input type="hidden" name="idProducto" value="<?php echo $row_DatosCot['idProducto']; ?>" />
      </form>
      <p>&nbsp;</p></td>
    <td><a href="pro_del.php?recordID=<?php echo $row_DatosCot['intContador']; ?>">Eliminar</a></td>
  </tr>      
<?php $mail->send();?>
  <?php } while ($row_DatosCot = mysql_fetch_assoc($DatosCot)); ?>
  </table>
&nbsp;</p>
<p> 
  </p>

<form id="form1" name="form1" method="post" action= >
  <input type="submit" name="button" id="button" value="Solicitar Cotización" />
</form>
<p></p>

<?php
mysql_free_result($DatosCot);
?>