Sure. CDO (or CDONTS...same thing) is a component which ships with Windows NT/2000 as part of IIS as a Web server application that lets you send e-mail from a Web page, triggered by an event, in this case the presence of an error.
Provided you have the SMTP service running on your server, and have ASP enabled, you should be able to incorporate CDO/CDONTS into your Web projects.
For your needs, I would recommend "trapping" the error within a statement....using the "On Error Resume Next" at the top of your page tells the browser to keep processing the remainder of your ASP script if it does detect an error, so it won't bomb out the entire page. Down further, you can use
If Error.Count > 0 Then
...SYNTAX FOR CDO MESSAGE HERE...
Error.Clear
End If
Wherein "...SYNTAX FOR CDO MESSAGE HERE..." contains a generic message is like so (
<%
'Dimension variables
Dim objCDOMail 'Holds the CDONTS NewMail Object
'Create the e-mail server object
Set objCDOMail = Server.CreateObject("CDONTS.NewMail"

'Who the e-mail is from
objCDOMail.From = "myE-mailHere@myDomain.com"
'Who the e-mail is sent to
objCDOMail.To = "thereEmail@thereDomain.com"
'Who the carbon copies are sent to
objCDOMail.Cc = "myFriend1@thereDomain.com;myFriend2@anotherDomain.com"
'Set the subject of the e-mail
objCDOMail.Subject = "Enquiry sent from my web site"
'Set the e-mail body format (0=HTML 1=Text)
objCDOMail.BodyFormat = 0
'Set the main body of the e-mail
objCDOMail.Body = "<h2>Hello</h2><br><b>This is my e-mail in HTML format</b>"
'Importance of the e-mail (0=Low, 1=Normal, 2=High)
objCDOMail.Importance = 1
'Send the e-mail
objCDOMail.Send
'Close the server object
Set objCDOMail = Nothing
%>
This way, when ever the page generates an error of any type, Error.Count will be greater than "0", and fire the CDO script to send an e-mail. You could have this sent to yourself to alert yourself that something went wrong.
You can check:
For a very simple example on error handling with VBScript.