Internet Direct (Indy)
Home
PreviousUpNext
TIdSMTP.Disconnect Method

Closes the SMTP session.

Pascal
procedure Disconnect(
    AImmediate: Boolean
); override;
Parameters 
Description 
AImmediate 
Indicates that the remote server is immediately notified of the closed session. 

Disconnect is an overridden method used to close the SMTP session. When Connected is True, the Disconnect method can be used to issue the SMTP QUIT command that inform the remote server that the session will be ended. 

Disconnect calls the inherited Disconnect method using AImmediate as an argument. Disconnect resets an internal flag that indicates the session has been authenticated. 

Use Connect to open an SMTP session using the Host and Port defined for the client.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.