Caution: this is old EurekaLog 6 documentation. This is not the latest version.
EurekaLog includes a function named GetLastEurekaLogErrorCode, that enables you to obtain the last internal EurekaLog error code.
Syntax of this function is as follows:
function GetLastEurekaLogErrorCode: TEurekaLogErrorCode;
You should use this function in the EurekaLog ExceptionActionNotify event to check if for errors in the email sending procedure (or other).
Example:
uses ExceptionLog, ECore, ETypes; // The required units...
procedure MyActionNotify(EurekaExceptionRecord: TEurekaExceptionRecord; EurekaAction: TEurekaActionType; var Execute: Boolean); begin if (EurekaAction = atSentEmail) and (GetLastEurekaLogErrorCode = eeEmailMAPIError) then begin MessageBox(0,'Cannot connect with the email client using the MAPI protocol.', 'Error', MB_OK or MB_ICONERROR); end; end;
|