type

 TScSMTPErrorEvent = procedure (Sender: TObject; ErrorCode: integer; const ErrorMessage: string; var Fail: boolean) of object;

 

property OnError: TScSMTPErrorEvent;

 

Description

The OnError event occurs when the server returns an error when executing some operation.

 

Parameters:

Sender - the object that raised the event;
ErrorCode - holds the error code;
ErrorMessage - holds the readable description of the error;
Fail - set the Fail parameter to False to prevent raising an exception, and set this parameter to True to raise the EScSMTPError exception.

 

See Also

ReplyCode

 

SecureBridge Components, Copyright © 2007-2021 Devart. All Rights Reserved. Provide Feedback Visit Forum Request Support