Internet Direct (Indy) Version 9.0.1 Beta
TIdSMTPServer.OnCommandSOML
Event handler signalled to implement the SMTP SOML command.

property OnCommandSOML: TBasicHandler;
Description
OnCommandSOML is a TBasicHandler property that represents the event handler signalled to initiate a mail transaction in which the mail data is delivered to one or more terminals or mailboxes. The SMTP SOML command allows delivery of mail data to a terminal, when the user is connected to the host and accepts terminal messages, or to a recipient's mailbox.

OnCommandSOML will use the list of hosts or email addresses and the sender mailbox provided in the TIdCommand.Params found in ASender. When a list of hosts is present, they represent the reverse source route used to relay the mail message., and is used to return non-delivery notices for the message. The first host in the list is the most recent relay.

The server implementation must assign a procedure to the OnCommandSOML event handler to allow responding to the event notification. When OnCommandSOML is unassigned, the text in Message.ErrorReply is sent to the client connection.