Problema PHpmailer
Publicado por Juan (6 intervenciones) el 25/03/2015 07:09:53
Hola, logré que se envíen los productos del carrito a mi mail, pero se me envía un mail por cada producto de la lista y no todos los productos en un solo mail..
Saludos y gracias desde ya!
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<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"> </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> </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>
</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);
?>
Saludos y gracias desde ya!
Valora esta pregunta


0