Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

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