In my website, I need to send a data table to the client via email. I want the table in a good format. I've heard that inline style doesn't work on Outlook so I think about CSS.
I have no idea about how to do this. Using Append method in the StringBuilder class is my only choice. Could you tell me a better way to achieve what I want? Thank you so much.
StringBuilder?StringBuilderbeing your only choice. How are you sending the email? Are you using theMailMessageobject? If you control the outgoing mail message you may be able to add a CSS "file" as aLinkedResourceto that message and reference it accordingly. Inline styles may be easier, though.string.Format()and then just populate the template with values.