SMTPSocket.DisconnectFromServer

From Xojo Documentation

Method

SMTPSocket.DisconnectFromServer()

Supported for all project types and targets.

Closes the connection with the mail server.