在c#中格式化电子邮件到SysAdmin的HTML例外(Formatting an Exception in HTML for email to SysAdmin in c#)

编程入门 行业动态 更新时间:2024-10-28 21:14:58
在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>

更多推荐

本文发布于:2023-07-18 04:44:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1154970.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:电子邮件   SysAdmin   HTML   email   Exception

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!