MailBee.NET Objects 4.0

Smtp.IsConnected Property

Indicates whether the component is connected to the server.

public bool IsConnected {get;}

Property Value

true if the component is connected to the server; otherwise, false.

Remarks

In multi-thread mode (MaxThreadCount is NOT 1), many threads may be executed simultaneously. While the connection may be opened on one thread, it may be already closed or not yet been established on another thread. Due to this, IsConnected property is not applicable in multi-thread mode (it returns false).

See Also

Smtp Class | MailBee.SmtpMail Namespace | IsSmtpContext