$WBErrMail is available for use with error template file, processed by WBSP in case of a run-time error.
Email address specified in WB_ErrMail form field for current WBSP file.
Here's an example of an error template file:
Error in /wbsp/basic/delete.wbspThe following internal error has occurred:
Please note what you were doing when this problem occurred, so we can identify and correct it. Write down the Web page you were using, any data you may have entered into a form or search box, and anything else that may help us duplicate the problem.Then contact the administrator of this service: <webmaster@localhost>