I'm making a HTML mail template. How would someone go around making a placeholder in html? i have an array of strings i want to parse in, in a certain column. But as expected from my code it only replaces the text "row1" once, so i only get the first string item. so how do i make a string[] placeholder in html that will just add a new line for each string in the array? So what to replace "Row1" with?
The html code:
<table border="0" cellpadding="10" cellspacing="0" width="100%">
            <tr>
                <td class="leftColumnContent">
                    <p>Row1</p>
                </td>
            </tr>
        </table>
The C# mail code ive tried:
        StreamReader myreaderhtml = new StreamReader("htmlemail.html");
        string[] lines = File.ReadAllLines("VUCresult.txt");
        string htmlmailbody = myreaderhtml.ReadToEnd();
        foreach (string s in lines)
        {
            htmlmailbody = htmlmailbody.Replace("Row2", namingConversion.GetADUserDisplayName(s));
        }
        for (int i = 0; i < lines.Length; i++)
        {
            htmlmailbody = htmlmailbody.Replace("Row1", lines[i]);
        }
 
     
    