ELMAH邮件失败问题

发布于 2024-10-04 07:11:08 字数 127 浏览 0 评论 0原文

Elmah 可以很好地从常规异常(例如未为 Elmah 配置的数据库)中恢复,无需执行任何操作或不发生任何事情,但是当我启用了 ErrorMail 并且未正确配置邮件时,我会在网站中收到异常。

有什么办法可以避免这种情况吗?

Elmah recovers from routine exceptions (like the DB not configured for Elmah) quite well by doing nothing, or causing nothing to happen, but when I have ErrorMail enabled, and mail is not configured properly, I pick up an exception in my web site.

Is there any way to avoid this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

落花浅忆 2024-10-11 07:11:08

我们重新编写了 ErrorMailModule.cs 来更改发送电子邮件的执行路径以避免这种情况,并将 ELMAH 配置为使用我们自己的版本。

We re-wrote ErrorMailModule.cs to change the execution path around sending emails to avoid this, and configured ELMAH to use our own version.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文