function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Tobias HaggeTobias Hagge 

Send chart image through Visualforce email

Hi. I've created an Email Template (Visualforce) and pass Visualforce Components in there. One of the components is an image of a dashboard component in the following format:
<apex:component access="global">

<apex:image value="[...]">

It's displayed perfectly in the Email Template HTML preview, but of course when sending the email, the image can't be referenced.

Any idea how to overcome this? Thank you!
Dushyant SonwarDushyant Sonwar
Hi Tobias,
See this
upload you image as document  and use that url in component
See this for more info
Tobias HaggeTobias Hagge
Hey. The problem is that the image I want to send is a dashboard component and therefore dynamic. You can get the image URL which stays the same even if the image is updated (on refresh of dashboard). Binding this URL in a component works fine, but is not displaying when send through email.
Hi Tobias,

I have the similar requirement to add report chart in the Email body. Any ideas how to insert chart in the Email body or as an attachment.