Click here to Skip to main content
15,891,529 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to create a dynamic table with data in c# and append it to the mail body?
Posted
Comments
OriginalGriff 19-Jun-14 5:41am    
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind.
Use the "Improve question" widget to edit your question and provide better information.

Though this is not a question,you can refer this one : http://stackoverflow.com/questions/11121908/send-email-with-a-table-inside[^]
 
Share this answer
 
Just create a StringBuilder thereby creating a HTML table with that. Loop through the rows of the DataTable and assign cell values inside the <td> Tag.

After the loop StringBuilder would contain the whole table. Then just send that HTML in mail.
 
Share this answer
 

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