I found this example to be helpful in coding my own emails that require lists of things:
https://www.epiusers.help/t/question-about-setting-a-variable-in-a-directive-to-use-as-the-to-in-an-email/39650