Internet Direct (Indy) Version 9.0.1 Beta
TIdSMTPMessages.Assign
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 in TIdSMTPMessages 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 TIdSMTPMessages instance, and if so, copies the values of the NoopReply, RSetReply, QuitReply, ErrorReply, ReceivedHeader, XServer, and SyntaxErrorReply properties. Assign also calls the Assign method for object instances in the Greeting, RcpReplies, and DataReplies properties.

If Source is not a TIdSMTPMessages instance, Assign calls the inherited method, which assigns properties from any object that specifies how to copy using the AssignTo method.