MailBee.NET Objects 3.1

Smtp.IsLoggedIn Property

Indicates whether the component has already successfully authenticated on the server and logged in the user account.

public bool IsLoggedIn {get;}

Property Value

true if already authenticated the user on the server (Login method has already been called and ESMTP SASL authentication successfully completed); otherwise, false.

Remarks

In multi-thread mode (MaxThreadCount is NOT 1), many threads may be executed simultaneously. While the authentication may already be completed on one thread, another thread may be just connecting to the server, etc. Due to this, IsLoggedIn property is not applicable in multi-thread mode (it returns false).

See Also

Smtp Class | MailBee.SmtpMail Namespace | IsSmtpContext