Expand my Community achievements bar.

Email Service Templates and variables

Avatar

Level 7

Hi,

Is it possible to pass variables for use in html attributes in an email service template? I would like to add an image programatically in to my template.

I can see that the variable is set as expected by doing:

<p>${assetPath}</p>

I am unable to use it as an image src attribute. I have tried applying the contexts that are used in sightly (even unsafe for testing):

<img src="${assetPath @ context='unsafe'}"></img>

but that doesn't appear to work, the src tag is removed from the html sent in the email.

Is it possible to do this with email templates?

Is there any documentation for the email templates?

Thanks,

James

H
0 Replies