在c#中格式化电子邮件到SysAdmin的HTML例外(Formatting an Exception in HTML for email to SysAdmin in c#)
我们的错误处理程序通过电子邮件发送SysAdmin异常。 现在他们看起来像普通文本一样糟糕。
有没有办法将异常和格式化成漂亮的html,这样SysAdmin可以更轻松地读取它?
Our error handler emails the SysAdmin exceptions. Right now they look bad as plain text.
Is there a way to take an Exception and format it into nice looking html so the SysAdmin can read it more easily?
最满意答案
<pre> ... htmlencoded output from Exception.ToString() goes here ... </pre> <pre> ... htmlencoded output from Exception.ToString() goes here ... </pre>更多推荐
发布评论