Loops in AEM Mail Templates

Avatar

Avatar
Validate 1
Level 2
rohit_w
Level 2

Likes

2 likes

Total Posts

20 posts

Correct reply

2 solutions
Top badges earned
Validate 1
Ignite 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
rohit_w
Level 2

Likes

2 likes

Total Posts

20 posts

Correct reply

2 solutions
Top badges earned
Validate 1
Ignite 1
Boost 1
Affirm 1
View profile
rohit_w
Level 2

26-05-2019

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?