Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Loops in AEM Mail Templates

rohit_w
Level 2
Level 2

Hi

I have a requirement to generate a mail from AEM, in which a bunch of lines of the template has to looped over and the data should be filled in from a list (like we use data-sly-list in sightly code).

Right now I am using the com.day.cq.commons.mail.MailTemplate which is good for the simple variable replacements of the mail template, but not for this use-case. Is there a way to achieve this?

0 Replies