Click here to Skip to main content
15,559,275 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
I am create one service,in that i add html table with data,that table got one header row and sub row,i am create table using following code.the code not full ,but i create table using System.Text.StringBuilder and pass sb to mail using " e_mail1.Body = sb.ToString"

e_mail1 is

VB
Dim e_mail1 As New MailMessage()


HTML
Dim sb As System.Text.StringBuilder = New System.Text.StringBuilder()
      Dim REmail As String = ""
      sb.Append("<html xmlns='http://www.w3.org/1999/xhtml'>")
      sb.Append("<head>")
      sb.Append("<title>")
      sb.Append("</title>")
      sb.Append("</head>")
      sb.Append("<body>")
      sb.Append("<form id='form1' runat='server'>")

      sb.Append("<table cellpadding='0' cellspacing='0' style='width: 100%; font-family: Segoe UI, Tahoma, Verdana;font-size: 14px;'>")

      sb.Append("<tr>")
      sb.Append("<td>")
      sb.Append("<br/>")


if i give height 0.2 em,when open mail i browser it show small grey line bcz of td backgrod color(#CCCCCC),but same mail open in outlook it look very big height like 10px.

HTML
sb.Append(" <tr><td colspan='5' style ='height:0.2em;background-color: #CCCCCC;'> </td> </tr>")


So how to show very thin line browser as well as when view in outlook also,or is there any way add thin line in each row of table ?

Regards
Aravind
Posted
Updated 28-Nov-22 5:14am

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900