title: iterating through a List<> using foreach loop in message.body while sending mail?
body: <p>in my asp.net application im sending a mail , which checks the list of employees eligible for promotion and sends that Employees List</p>
  
  <p>I need it in this pattern</p>
  
  <pre><code> The following Employees Are eligible for promotion:
  
   xyz
   abc
  </code></pre>
  
  <p>The employees names are in a list, i need to use foreach loop inside msg.body and iterate through that list but its giving me some syntax errors, is it possbile to loop in html?</p>
  
  <pre><code>msg.Body = "The following Employees Are eligible for promotion &lt;br/&gt;&lt;br/&gt;Employee Name: '"  "'";
  
  
  
  this is my List
        List&lt;string&gt; myList = UserForPromotion.Split(',').ToList();
  </code></pre>