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="https://instance.my.salesforce.com/servlet/servlet.ChartServer?[...]">
</apex:image>

</apex:component>
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
https://help.salesforce.com/apex/HTViewSolution?id=000005925&language=en_US
upload you image as document  and use that url in component
See this for more info
www.shellblack.com/marketing/html-email/
 
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.
saai.gane@salesforce.comsaai.gane@salesforce.com
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.