I am sending Email with html table, using below code.
MailMessage message = new MailMessage();
message.From = new MailAddress("XYZ");
message.To.Add("APC");
message.Body = "<table border='1' cellpadding='0' cellspacing='0' width = '100%' class='table table-bordered'> <tr> < th > S No.</ th > <th>Item Code</th><th>Description</th><th>Make At</th></tr><tr><td>" + id.Serial_Number + "</td> <td>" + id.PNI_Code + "</td><td>" + id.Description + "</td><td>" + id.Make_At + "</td></tr> </table>";
message.Subject = "New Request for DTA item creation";
SmtpClient client = new SmtpClient();
client.Send(message);
But getting email mail body like this
<table border='1' cellpadding='0' cellspacing='0' width = '100%' class='table table-bordered'> <tr> < th > S No.</ th > <th>Item Code</th><th>Description</th><th>Make At</th></tr><tr><td>1313</td> <td>STSP001</td><td>SLIP PAD -small</td><td>PNI_C12</td></tr> </table>
How i can create html table in Email body in MVC