StringBuilder's AppendFormat Method to create Table
<p>I have a problem with AppendFormat method of StringBuilder class.
I am creating table and appending data in string builders object to send it as mail, but when i saw mail sent by me, it does not look like table, its header and there corresponding contents are miss-placed. I want table to be separated by Lines as it generally there in microsoft word's table.
how can i achieve it..
I am using following code: Body is a StringBuilder Object</p>

<pre><code>if (  dic1 != null )
{
     //Body.AppendFormat("Client: " + cl + " Success. " + dic1.Count + " :");
     Body.AppendFormat("&lt;br/&gt;&lt;table&gt;");
     Body.AppendFormat("&lt;h1&gt;&lt;tr&gt;&lt;td&gt;#&lt;/td&gt;&lt;td&gt;Files Name&lt;/td&gt;&lt;/tr&gt;&lt;/h1&gt;");
     int count = 1;
      foreach ((KeyValuePair&lt;string, string&gt; pair in  dic1)
               {
                    if (!String.IsNullOrEmpty(pair.Key))
                     {

                      Body.AppendFormat("&lt;tr&gt;&lt;td&gt;"+count.ToString()+"&lt;/td&gt;&lt;td&gt;" + pair.Key + "&lt;/td&gt;&lt;td&gt; " + pair.Value + "&lt;/td&gt;&lt;/tr&gt;");
                        count++;
                        //Body.Append( );
                    }
                }

                Body.AppendFormat("&lt;/table&gt;");
</code></pre>

<p>Following is output i am getting in my inbox.</p>

<pre><code> # File Name Error 
 1 txt1.txt Loading File 'txt1.txt' failed: The specified File already exists in the system 
 2 txt2.txt Loading File 'txt2.txt' failed: The specified File already exists in the system 
 3 txt3.txt Loading File 'txt3.txt' failed: The specified File already exists in the system 
</code></pre>
