I know ASP, JMail and such.
I know where to edit my HTML error pages in IIS 7, but i want to take it one step further:
How do I a ASP error page where it state something like “Error, the customer support were contacted, please try again later.”
And then it send me an e-mail with the detailed debugging-information about the error?
See the instructions from http://support.microsoft.com/kb/224070 and Custom Errors on IIS 7.0 and Classic ASP
First one shows a detailed error information to the guests when an error occurs.
You can modify that to sends an e-mail message that contains detailed error information.
Second one is to configuring custom error page in IIS7.