This event is executed directly when an error occurs. The event is executed before any global rules are executed
OnError(iSeverity, iCode, sSource, sDescription)
- iSeverity - Error severity. 1 - Critical, 2 - High, 3 - Medium, 4 - Low
- iCode - The hMailServer error code.
- sSource - The component which reported the error.
- sDescription - A description of the reported error.