Hi All,
I'm using the email module successfully to send emails, and have got my head around tokens and reflection.
However, ideally I wish to be able to iterate over a list to generate multiple lines in an email.
For example, at the moment I can do "{%Name%} is in your class" to generate a single line in an email.
What I would like to do, is to iterate over my "Person" object, and have:
"{%Name%} is in your class" - many times, so the email looks a little like:
Peter is in your class
John is in your class
Michael is in your class
...all contained within one email.
Caveats are that I don't know how many "People" would be in the class at design time - could be 1 could be 100.
Do I have to create a document and use attachments, or is there a neat, inline way of doing it?
Many thanks
Tarique