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

static resource in custom html email template

Why am I unable to use <img src="{!$Resource.ilogo}" alt="i_logo" /> in a custom html email template, what am I doing wrong, its not letting me save!! please help?


The problem is not the img tag but I think I am hitting a SF bug. When I refer to a static resouce in custom html template as follows:


<link rel="stylesheet" type="text/css" href={!{!ID:$Resource.Styles}} />


it saves fine. But when I try to edit it, it is coming up as :


<link rel="stylesheet" type="text/css" href={!{!ID:$Resource.Styles}} />


and then when I hit save, its giving me


Error: Inaccessible fields. Please review all fields referenced by the formula.
Another SF bug!!!

Try using <img src="{!URLFOR($Resource.ilogo)}" alt="i_logo" /> and make sure that your static resource's Cache Control  is public.


Hope this helps you.........