<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Email Templates - Attach charts&#x2F;images in email body]]></title><description><![CDATA[<p>I have been exploring the email template capabilities and encountered a scenario where I needed to attach a chart/image to the email body.<br />
I created a template with the HTML recipe, which allowed me to attach plain HTML (without any images/charts) to the email body.</p>
<p>However, when I included an image, it did not appear in the email body.<br />
I also tried using the html-with-browser-client recipe and converted the response to HTML content using res.content.toString('utf-8'), but the image still did not appear.</p>
<p>Could you suggest how I can achieve this? Additionally, if you have any references, please provide them.</p>
]]></description><link>https://forum.jsreport.net/topic/3367/email-templates-attach-charts-images-in-email-body</link><generator>RSS for Node</generator><lastBuildDate>Mon, 11 May 2026 02:20:37 GMT</lastBuildDate><atom:link href="https://forum.jsreport.net/topic/3367.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 29 Nov 2024 17:33:21 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Email Templates - Attach charts&#x2F;images in email body on Invalid Date]]></title><description><![CDATA[<p>I have been exploring the email template capabilities and encountered a scenario where I needed to attach a chart/image to the email body.<br />
I created a template with the HTML recipe, which allowed me to attach plain HTML (without any images/charts) to the email body.</p>
<p>However, when I included an image, it did not appear in the email body.<br />
I also tried using the html-with-browser-client recipe and converted the response to HTML content using res.content.toString('utf-8'), but the image still did not appear.</p>
<p>Could you suggest how I can achieve this? Additionally, if you have any references, please provide them.</p>
]]></description><link>https://forum.jsreport.net/post/14271</link><guid isPermaLink="true">https://forum.jsreport.net/post/14271</guid><dc:creator><![CDATA[Rajesh91-ch]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Email Templates - Attach charts&#x2F;images in email body on Invalid Date]]></title><description><![CDATA[<p>This means you call jsreport API, get back HTML, and then use some library to send an email, but the received email doesn't show images? This is more a topic for the particular library you use.</p>
]]></description><link>https://forum.jsreport.net/post/14277</link><guid isPermaLink="true">https://forum.jsreport.net/post/14277</guid><dc:creator><![CDATA[admin]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Email Templates - Attach charts&#x2F;images in email body on Invalid Date]]></title><description><![CDATA[<p>This means you call jsreport API, get back HTML, and then use some library to send an email, but the received email doesn't show images? <strong>Yes, you are correct.</strong><br />
We have configured nodemailer library with gmail SMTP.</p>
<p>Currently, the html template generates the base64 format for the images using dataURI notation. is it possible to generate the CID notation?</p>
]]></description><link>https://forum.jsreport.net/post/14278</link><guid isPermaLink="true">https://forum.jsreport.net/post/14278</guid><dc:creator><![CDATA[Rajesh91-ch]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Email Templates - Attach charts&#x2F;images in email body on Invalid Date]]></title><description><![CDATA[<p>It is up to you how you code it....</p>
<p>You can for example use string replace in the html to replace datauri with CID in the <code>afterRender</code> script.</p>
<p>Or read the images in the <code>afterRender</code> script like this <a href="https://jsreport.net/learn/assets#read-asset" rel="nofollow">https://jsreport.net/learn/assets#read-asset</a></p>
]]></description><link>https://forum.jsreport.net/post/14279</link><guid isPermaLink="true">https://forum.jsreport.net/post/14279</guid><dc:creator><![CDATA[admin]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>