+ Start a Discussion
lnryanlnryan 

Issue with Images from Rich Text displaying in VF Email Template

We are experiencing a problem with how Images within Rich Text fields display in custom VF Email Templates: when we preview the templates the images render fine, but when we test sending them out, the images display only the typical broken-image icon (ie white box, red X).

 

Does anyone know how to fix this? Is there a setting in the <apex:outputField> or a way to use a custom controller to 'unpack' the image references within the rich text field and replace them with resource references, actual image tags, etc?

 

Additional Details:

  • The rich text field is already being rendered using the <apex:outputField> tag
  • The field occurs within a custom VF component embedded in the email
  • The VF component also uses a custom controller.
  • I have already confirmed that the rendering issue is unrelated to the component / controller

 

Vishal_GuptaVishal_Gupta
Hi Inryan,

You need to save your image in attachment or in static resource, after that you can send image through your Vf email template. 

Thanks,
Vishal
Muthuraj TMuthuraj T
Hi,
Please check the image is accessible for public users. And also check the image url.
Rohini B 6Rohini B 6
Hi Inryan,

I have similar requirement. Did you get solution to displaying images from richText fields in email?

Thanks!