I have set <customErrors mode="On"/> in my web.config. If there is an error on the site the user gets a “user friendly” error message. In the mean time I want to send an e-mail to the myself with the actual error message (so I know exactly what went wrong).
How can I do this?
You have to write code to send the mail in the
Application_Errormethod of theGlobal.asaxfile.Sample here for using the Application_Error method.