How do I format the body of the email so it doesn't loo开发者_开发问答k so old school :) I've tried sending html through it, but it just comes out as html in the body of the email.
Thanks for any help and assistance, cheers!
Set the IsBodyHtml
property to true.
Including the above, I use StringBuilder's to format the contents of my emails like so:
StringBuilder sb = new StringBuilder();
sb.AppendFormat("{0} submitted the following information from the site:", txtName.Text);
I just find it's helpful in visualizing the outcome rather than doing +='s and such.
精彩评论