Click here to Skip to main content
15,867,141 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello all,


I need to know how to send the information s in table format thru mail
Emp Id   Emp name  Emp age  Emp Destination Emp Salary

101       Bujju      10        IT             20,000

how to display it in table format

Help pl

Regards,
Praveen
Posted
Updated 3-Aug-11 21:17pm
v2

Hello

here is an example. please follow and change the logic according your requirement.
Click Here[^]

thanks
sanjeev
 
Share this answer
 
Comments
praveena.karthi 4-Aug-11 3:42am    
Thanks Sanjeev
Its really help me

Regards
Praveena
Make mailmessage.IsBodyHtml = True and then assign the HTML to mailmessage.Body = "html string here"

More info here[^]
 
Share this answer
 
v2
Try this

string text= "<table><tr><td>EmpId</td><td>Emp name</td><td>age</td></tr><tr><td>value</td><td>value</td><td>value</td></tr></table>"
 
Share this answer
 
v2

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