HTML Table not working in Mail
<p>I am creating a runtime HTML table and sending via mail. The table is added in the body of mail. But when the mail is triggered it is showing <strong>System.Web.UI.HtmlControls.HtmlTable</strong> instead of the contents of the table.</p>

<p>// .csPage:</p>

<pre><code>HtmlTable tbl = new HtmlTable();
        tbl.Border = 1;
        tbl.CellSpacing = 0;
        HtmlTableRow trHeader = new HtmlTableRow();
        HtmlTableCell tcHeader = new HtmlTableCell();
        tcHeader.InnerText = "Mobile Number";
        HtmlTableCell tc1Header = new HtmlTableCell();
        tc1Header.InnerText = "Carrier";
        trHeader.Cells.Add(tcHeader);
        trHeader.Cells.Add(tc1Header);
        tbl.Rows.Add(trHeader);
 for (int i = 0; i &lt; dvNumbers.Rows.Count; i++)
            {
                HtmlTableRow tr = new HtmlTableRow();
                HtmlTableCell tc = new HtmlTableCell();
                tc.InnerText = dvNumbers.Rows[i].Cells[0].Text;
                tr.Cells.Add(tc);
                HtmlTableCell tc1 = new HtmlTableCell();
                tc1.InnerText = dvNumbers.Rows[i].Cells[1].Text;
                tr.Cells.Add(tc1);
                tbl.Rows.Add(tr);

            }

            objMail.MobileDeactivationMail(txtMailTo.Text, txtMailCC.Text, txtMailBCC.Text, tbl);
</code></pre>

<p>// Mail Code:</p>

<pre><code>public bool MobileDeactivationMail(string strReceiverMailId, string CC, string BCC, HtmlTable tbl)
    {
        bool blnIsMailSent = false;
        MailMessage objMailMsg;
        try
        {
            objMailMsg = new MailMessage();
            MailAddress FromAdd = new MailAddress("x@x.com");
            objMailMsg.From = FromAdd;
            objMailMsg.To.Add(new MailAddress(strReceiverMailId));
            if (CC != "")
                objMailMsg.CC.Add(new MailAddress(CC));
            if (BCC != "")
                objMailMsg.Bcc.Add(new MailAddress(BCC));
            objMailMsg.Subject = "Deactivation of Mobile Numbers";
            objMailMsg.Priority = MailPriority.High;
            objMailMsg.IsBodyHtml = true;
            objMailMsg.Body = "&lt;table style='font-family:Tahoma; font-size:small';&gt;&lt;tr&gt;&lt;td&gt; Dear Sir/Mam&lt;/td&lt;&lt;/tr&gt;," + "&lt;tr&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;td&gt;&lt;td&gt;         Kindly Deactivate the following mobile numbers.&lt;/br&gt;&lt;/br&gt;" + tbl + " &lt;/td&gt;&lt;/td&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;table style='font-family:Tahoma; font-size:small';&gt;&lt;tr&gt;&lt;td&gt;Regards,&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;HR&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;";
            SmtpClient SmtpMail = new SmtpClient();
            SmtpMail.Port = 25;
            SmtpMail.Host = "xxxxx";
            System.Net.NetworkCredential SMTPUserInfo = new System.Net.NetworkCredential("xxxxxxx", "xxxxx");
            SmtpMail.UseDefaultCredentials = false;
            SmtpMail.Credentials = SMTPUserInfo;
            SmtpMail.Send(objMailMsg);
            objMailMsg.Dispose();
            blnIsMailSent = true;
        }
        catch (Exception Ex)
        {
            blnIsMailSent = false;
        }

        return blnIsMailSent;
    }
</code></pre>

<p>Where i am going wrong?</p>
