Hola,
Por favor, su ayuda al siguiente problema. Estoy tratando de enviar un correo en formato HTML, que incluye una tabla en el cuerpo de correo, esto se asigna a una variable, utilizo enviar email avanzado y en el apartado Mensaje coloco la variable, intenté usando hasta triples comillas pero me sale la siguiente excepción:
EXCEPTION IN (<string>, L_99 «»): Expecting ‘,’ delimiter: line 1 column 198 (char 197)
Variable:
<p style="’margin-right:0cm;margin-left:0cm;font-size:15px;font-family:»Calibri»,sans-serif;margin:0cm;’"><span style="»font-family:" ‘times new roman’, times, serif;»>Estimado proveedor:</span></p> <p style="’margin-right:0cm;margin-left:0cm;font-size:15px;font-family:»Calibri»,sans-serif;margin:0cm;’"><br></p> <p style="’margin-right:0cm;margin-left:0cm;font-size:15px;font-family:»Calibri»,sans-serif;margin:0cm;’"><span style="»font-family:" ‘times new roman’, times, serif;»><strong>ROCEA CIA.LTDA</strong></span></p> <p style="’margin-right:0cm;margin-left:0cm;font-size:15px;font-family:»Calibri»,sans-serif;margin:0cm;’"><br></p> <p style="’margin-right:0cm;margin-left:0cm;font-size:15px;font-family:»Calibri»,sans-serif;margin:0cm;’"><span style="»font-family:" ‘times new roman’, times, serif;»><span style="»font-size:" 16px; color: black; background: white;»>Con el presente informe se hace comunicado de los faltantes en mercancía de la Orden 41702924 detallados a continuación:</span></span></p> <p style="’margin-right:0cm;margin-left:0cm;font-size:15px;font-family:»Calibri»,sans-serif;margin:0cm;’"><span style="»font-family:" ‘times new roman’, times, serif;»><span style="»font-size:" 16px; color: black; background: white;»> </span></span></p> <table style="»border:" none;border-collapse: collapse;width:680pt;»> <tbody> <tr> <td style="»color:black;font-size:13px;font-weight:700;font-style:normal;text-decoration:none;font-family:Arial," sans-serif;text-align:general;vertical-align:top;border:.5pt solid windowtext;background:silver;height:15.0pt;width:56pt;»>Item</td> <td style="»color:black;font-size:13px;font-weight:700;font-style:normal;text-decoration:none;font-family:Arial," sans-serif;text-align:general;vertical-align:top;border:.5pt solid windowtext;background:silver;border-left:none;width:319pt;»>TextoBreve</td> <td style="»color:black;font-size:13px;font-weight:700;font-style:normal;text-decoration:none;font-family:Arial," sans-serif;text-align:general;vertical-align:top;border:.5pt solid windowtext;background:silver;border-left:none;width:83pt;»>CtdPedido</td> <td style="»color:black;font-size:13px;font-weight:700;font-style:normal;text-decoration:none;font-family:Arial," sans-serif;text-align:general;vertical-align:top;border:.5pt solid windowtext;background:silver;border-left:none;width:83pt;»>CtdFaltante</td> <td style="»color:black;font-size:13px;font-weight:700;font-style:normal;text-decoration:none;font-family:Arial," sans-serif;text-align:general;vertical-align:top;border:.5pt solid windowtext;background:silver;border-left:none;width:56pt;»>Unidad</td> <td style="»color:black;font-size:13px;font-weight:700;font-style:normal;text-decoration:none;font-family:Arial," sans-serif;text-align:general;vertical-align:top;border:.5pt solid windowtext;background:silver;border-left:none;width:83pt;»>FeEntrega</td> </tr> <tr> <td style="»color:black;font-size:15px;font-weight:400;font-style:normal;text-decoration:none;font-family:Calibri," sans-serif;text-align:general;vertical-align:bottom;border:none;height:15.0pt;»>1</td> <td style="»color:black;font-size:15px;font-weight:400;font-style:normal;text-decoration:none;font-family:Calibri," sans-serif;text-align:general;vertical-align:bottom;border:none;»>VIGANTOL ADE FTE 25ML</td> <td style="»color:black;font-size:15px;font-weight:400;font-style:normal;text-decoration:none;font-family:Calibri," sans-serif;text-align:general;vertical-align:bottom;border:none;»>12</td> <td style="»color:black;font-size:15px;font-weight:400;font-style:normal;text-decoration:none;font-family:Calibri," sans-serif;text-align:general;vertical-align:bottom;border:none;»>12</td> <td style="»color:black;font-size:15px;font-weight:400;font-style:normal;text-decoration:none;font-family:Calibri," sans-serif;text-align:general;vertical-align:bottom;border:none;»>UN</td> <td style="»color:black;font-size:15px;font-weight:400;font-style:normal;text-decoration:none;font-family:Calibri," sans-serif;text-align:general;vertical-align:bottom;border:none;»>10/12/2020</td> </tr><tr> <td style="»color:black;font-size:15px;font-weight:400;font-style:normal;text-decoration:none;font-family:Calibri," sans-serif;text-align:general;vertical-align:bottom;border:none;height:15.0pt;»>2</td> <td style="»color:black;font-size:15px;font-weight:400;font-style:normal;text-decoration:none;font-family:Calibri," sans-serif;text-align:general;vertical-align:bottom;border:none;»>VIGANTOL ADE FTE 25ML</td> <td style="»color:black;font-size:15px;font-weight:400;font-style:normal;text-decoration:none;font-family:Calibri," sans-serif;text-align:general;vertical-align:bottom;border:none;»>12</td> <td style="»color:black;font-size:15px;font-weight:400;font-style:normal;text-decoration:none;font-family:Calibri," sans-serif;text-align:general;vertical-align:bottom;border:none;»>12</td> <td style="»color:black;font-size:15px;font-weight:400;font-style:normal;text-decoration:none;font-family:Calibri," sans-serif;text-align:general;vertical-align:bottom;border:none;»>UN</td> <td style="»color:black;font-size:15px;font-weight:400;font-style:normal;text-decoration:none;font-family:Calibri," sans-serif;text-align:general;vertical-align:bottom;border:none;»>10/12/2020</td> </tr> </tbody> </table> <p style="’margin-right:0cm;margin-left:0cm;font-size:15px;font-family:»Calibri»,sans-serif;margin:0cm;’"><span style="»font-family:" ‘times new roman’, times, serif;»><span style="»font-size:" 16px; color: black; background: white;»> </span></span></p> <p style="’margin-right:0cm;margin-left:0cm;font-size:15px;font-family:»Calibri»,sans-serif;margin:0cm;’"><span style="»font-family:" ‘times new roman’, times, serif;»><span style="»font-size:" 16px; color: black; background: white;»>Le solicitamos el favor de despacharnos con la mayor rapidez posible la mercancía faltante.</span><span style="»font-size:" 16px; color: black;»><br> <br> </span><span style="»font-size:" 16px;»>Cualquier consulta sobre el pedido debe dirigirse al:</span></span></p> <p style="’margin-right:0cm;margin-left:0cm;font-size:15px;font-family:»Calibri»,sans-serif;margin:0cm;’"><span style="’font-size:" 16px; font-family: «times new roman», times, serif;’>Departamento de compras (07) 2862127 Ext: 4120 – 2212</span></p> <p style="’margin-right:0cm;margin-left:0cm;font-size:15px;font-family:»Calibri»,sans-serif;margin:0cm;’"><span style="’font-size:16px;font-family:»Times" new roman»,serif;color:black;’><br> </span></p> <p style="’margin-right:0cm;margin-left:0cm;font-size:15px;font-family:»Calibri»,sans-serif;margin:0cm;’"><span style="’font-size:16px;font-family:»Times" new roman»,serif;’>Agradezco la atención a la presente solicitud.</span></p> <p style="’margin-right:0cm;margin-left:0cm;font-size:15px;font-family:»Calibri»,sans-serif;margin:0cm;’"><span style="’font-size:16px;font-family:»Times" new roman»,serif;’> </span></p> <p style="’margin-right:0cm;margin-left:0cm;font-size:15px;font-family:»Calibri»,sans-serif;margin:0cm;’"><span style="’font-size:16px;font-family:»Times" new roman»,serif;’>Atentamente,</span></p> <p style="’margin-right:0cm;margin-left:0cm;font-size:15px;font-family:»Calibri»,sans-serif;margin:0cm;’"><span style="’font-size:16px;font-family:»Times" new roman»,serif;’> </span></p> <p style="’margin-right:0cm;margin-left:0cm;font-size:15px;font-family:»Calibri»,sans-serif;margin:0cm;’"><span style="’font-size:16px;font-family:»Times" new roman»,serif;’>Departamento de compras.</span></p> <p style="’margin-right:0cm;margin-left:0cm;font-size:15px;font-family:»Calibri»,sans-serif;margin:0cm;’"><span style="’font-size:16px;font-family:»Times" new roman»,serif;’>LACTEOS C.A.</span></p>
constanza
Me pasó lo mismo, lo que hice fue agregar el html directamente en el mensaje, sin variable, y funcionó… Saludos!