+ 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?[...]">

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.