Internet Direct (Indy) Version 9.0.1 Beta
TIdSMTPMessages.ErrorReply
Represents the error message used when a command action does not have a corresponding event handler.

property ErrorReply: string;
Description
ErrorReply is a String property that represents the SMTP Server response written to the client connection when a TIdCommand.OnCommand event handler does not have a corresponding TIdBasicHandler event handler in the TIdSMTPServer implementation for the .

The default behavior in TIdSMTPServer is to send an RFC response with the numeric error code 500 concatenated with the value in ErrorReply. The command action handler and server event handler combinations used in TIdSMTPServer include the following:

The default value for ErrorReply is RSSMTPSvrCmdGeneralError, as assigned in the Create constructor.