I am trying to create a HTML Email Template with table in c# . For the same i used string and trying to concatenate the HTML tags. Now i have to add values from List as table data but not able to add the foreach loop inside string ..Below is my code..
EmailFormat += "<table><thead><tr><th>FirstName</th><th>LastName</th><th>Id</th><th>Date</th></thead>"
+ foreach(Notification pReview in Review)
{
}
+ "</table>";
How can I do this?