我在asp.net中发送带有HTML Body的邮件。但问题是在邮件中,Body消息不会在Table中显示数据。但我在HTML正文中使用Table
但我希望这种格式带有带边框的正确表格。
请检查我的代码&给了我建议......
Collapse | Copy Code
string strBody = "<html><body><table><tr><td>Name = </td><td>" + name + "</td></tr> " +
" <tr><td>Contact No. = </td><td>" + mobile + "</td></tr> " +
" <tr><td>Email-ID = </td><td>" + email + "</td></tr> " +
" <tr><td>City = </td><td>" + city + "</td></tr> " +
" <tr><td>State = </td><td>" + state + "</td></tr> " +
" <tr><td>Country = </td><td>" + country + "</td></tr><br /> " +
" <tr><td>Message = </td><td>" + body + "</td></tr> " +
" </table> </body></html>";
message.Body=strBody;
message.IsBodyHtml = true;