Capture original ASP.net Error page and send as email and display User Friendly message/page
I would like to be able to send an email with the same html that get generated when an exception occurs in asp.net however not to display this to the use开发者_如何学Pythonr.
Would this be simple? or would it just be best to manually output the exception details to an email?
You should look into a popular library called elmah:
- http://code.google.com/p/elmah/
It will log your errors and let you view the original YSOD (yellow screen of death) and you can also optionally have them emailed to you.
精彩评论