开发者

Email formating using System.Net.Mail smtpclient

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜