TIdSMTPRcpReplies
Repesents messages used in SMTP commands using recipient mail addresses.
TIdSMTPRcpReplies = class(TPersistent)
Unit
Description
TIdSMTPRcpReplies is a TPersistent descendant that specifies properties and method need to implement a container for messages used in response to SMTP command verbs that involve recipient mail addresses. TIdSMTPRcpReplies publishes the
AddressOkReply,
AddressErrorReply, and
AddressWillForwardReply properties that contain these messages values.
TIdSMTPRcpReplies is the type used to represent the TIdSMTPMessages.RcpReplies, and is used in the command event handlers for the SMTP MAIL and RCPT commands.
Specifies the response message used when SMTP RCPT cannot
accept or forward incoming mail.
property AddressErrorReply: string;
Description
AddressErrorReply is a String property that specifies the message used as a response to the SMTP RCPT command verb. AddressErrorReply is used in TIdSMTPServer.CommandRcpt to indicate to the client connection that the incoming mail cannot be selected for delivery to the local destination address, or cannot be forwarded to a remote address.
Specifies the response message used when SMTP RCPT accepts mail for local delivery.
property AddressOkReply: string;
Description
AddressOkReply is a String property that specifies the message used as a response to the SMTP RCPT command verb. AddressOkReply is used in TIdSMTPServer.CommandRcpt to indicate to the client connection that the incoming mail has been accepted for delivery to the local destination address.
Specifies the response message used when SMTP RCPT will forward mail.
property AddressWillForwardReply: string;
Description
AddressWillForwardReply is a String property that specifies the message used as a response to the SMTP RCPT command verb. AddressWillForwardReply is used in TIdSMTPServer.CommandRcpt to indicate to the client connection that the incoming mail will be forwarded to the destination address.
Copies the properties of one Object instance to another.
procedure Assign(Source: TPersistent); override;
Parameters
Source: TPersistent
Object instance containing values to be copied.
Description
Assign is an overridden procedure that copies the property values in Source to the current object instance. Assign calls the inherited Assign method.
Assign checks whether the Source parameter specifies another TIdSMTPRcpReplies instance, and if so, copies the values of the AddressOkReply, AddressErrorReply, and AddressWillForwardReply properties.
If Source is not a TIdSMTPRcpReplies instance, Assign calls the inherited method, which assigns properties from any object that specifies how to copy using the AssignTo method.
Constructor for the object instance.
Description
Create is the constructor for the object instance. Create calls the inherited Create method, and assigns the default constant values for the following properties: