Internet Direct (Indy) Version 9.0.2 Beta
TIdSMTPServer.Create
Constructor for the object instance.

constructor Create(AOwner: TComponent); override;
Parameters
AOwner: TComponent
Owner of the object instance.

Description
Create is the constructor for the object instance, and calls the inherited Create method to initialize property values. Create sets the value of DefaultPort to 25 as used by convention in the SMTP protocol.

Create assigns TIdSMTPServerThread to ThreadClass to indicate the class used to create threads of execution for new SMTP client connections.

Create assigns the default values for the Greeting property, used when new client connections are established, and the ReplyUnknownCommand property, used when an unknown SMTP command is received by the SMTP server.

Create also initializes a group of TIdCommandHandler instances in CommandHandlers used to implement SMTP server commands when CommandHandlersEnabled is True. The commands and command event procedures in the default SMTP server implementation include: