So I have a page where the users fill out a comments / request form and when the press submit all of the information they fill out gets sent right to my email.
I am trying to make it so when the email comes through it is easier to read and in tables or html. How do I do this?
Here is my code:
System.Text.StringBuilder sb = new System.Text.StringBuilder();
sb.AppendFormat("Request Name: {0}, <b><b/> <br/><br/>", txtBugName.Text.Trim());
sb.AppendFormat("Category: {0}<br/><br/>", ddlModule.SelectedValue);
sb.AppendFormat("Sub-Category: {0}<br/><br/>", ddlPage.SelectedValue);
sb.AppendFormat("Description: {0}<br/><br/>", txtComments.Text.Trim());
sb.AppendFormat("Email is: {0}<br/><br/>", txtemail.Text.Trim());
What do I need to add to change the format?
Your code should look more like:
Then I’m assuming the
IsBodyHtmlproperty is true, since you were using HTML already