Skip to main content
Hi All, I created aClassic Email Template using VisualForce.

It is showing in VF Pages but when i send it to Gmail,the images are not rendering (CSS)

Please Look into this....

<messaging:emailTemplate subject="Email Template" recipientType="Account" > <messaging:HTMLEmailBody > <html> <div style="float:left"> <a href="https://www.facebook.com/"><apex:image id="fb" width="10%" style="padding-bottom:3px" value="{!$Resource.FBIcon}" /></a> <a href="https://www.instagram.com/?hl=en"><apex:image id="ins" width="10%" style="padding- bottom:10px" value="{!$Resource.InsIcon}" /></a> </div> </html> </messaging:HTMLEmailBody> </messaging:emailTemplate>
1 respuesta
  1. 30 may 2022, 11:31
    HI Jay,

    Where is the image hosted? If it is not public, try uploading the images as public documents

    Go to Documents tab click on New Button Enter Document Name Check check box Externally Available Image Choose file Click on save Copy the image URL .

    See this related post too : https://salesforce.stackexchange.com/questions/159052/css-image-not-showing-in-visualforcepage

    https://salesforce.stackexchange.com/questions/21706/images-not-showing-up-in-email-sent-using-email-template

    If this information helps, please mark the answer as best. Thank you
0/9000