Click here to Skip to main content
16,022,542 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
how do i send data from database in table format to email with c sharp
Posted
Comments
Joan Magnet 18-Mar-15 18:59pm    
If you would like to send a html table then you must build all the html code, use an html editor to build a template and fill it before send in rtf format.

There is no way to send a table in text format.

1 solution

Two ways...

1. Use a HTML Editor while taking input. So, in the Editor, you will make that tabular format and save that HTML into database.

2. You save the data in plain text. But after getting that data, in code you will try to form a table by StringBuilder class or something. Then add that to the body of the Mail object.
 
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