Closes connection to SMTP server.
Declaration Syntax
C# | Visual Basic | Visual C++ | F# |
public void Disconnect( bool sendQuit )
Public Sub Disconnect ( sendQuit As Boolean )
public: void Disconnect( bool sendQuit )
member Disconnect : sendQuit : bool -> unit
Parameters
- sendQuit (Boolean)
- If true QUIT command is sent to SMTP server.
Exceptions
Exception | Condition |
---|---|
ObjectDisposedException | Is raised when this object is disposed and this method is accessed. |
InvalidOperationException | Is raised when SMTP client is not connected. |
Assembly: LumiSoft.Net (Module: LumiSoft.Net.dll) Version: 4.5.5510.19119