For each into a message of an email

For each into a message of an email

Hi!

I'm trying to create a table that contain variable rows. To create those rows I'm trying to put an "for each" into the body of the email using <% and %>. Does anyone knows if that is possible? And if it is, how i can do it?