Disconnects from SMTP server.

Namespace: Jscape.Email
Assembly: Jscape.Email (in Jscape.Email.dll) Version: 2.4.5.0

Syntax

C#
public virtual void Disconnect()
Visual Basic
Public Overridable Sub Disconnect
Visual C++
public:
virtual void Disconnect()

Remarks

Closes the input and output NetworkStream and Socket connection.

Examples

To close a connection to an SMTP server, invoke the Disconnect method.
CopySmtp Disconnect
mySmtp.Disconnect();

CopySmtp Disconnect
mySmtp.Disconnect()

See Also