Question How to create table?

raysefo

Well-known member
Joined
Jul 21, 2010
Messages
207
Programming Experience
Beginner
Hi,

I have a console app. which sends email. The values in this email is populated from a SQL query. I would like to put those values inside a html table or something.

Is there a way to do it?

Thanks in advance.


Best Regards.
 
Just like an HTML web page, your email body is simply text. You simply build up a String containing the HTML code you want and assign it to the Body property of the MailMessage. You would most likely use a StringBuilder.
 
Back
Top